# print with negative account pattern should exclude transactions containing a matched posting
bin/hledger -f- print not:a
<<<
2010/1/1 x
a 1
b -1
>>>