hectorcorrea / marcli

MARC command line parser
MIT License
117 stars 8 forks source link

Count of records #9

Open hectorcorrea opened 3 years ago

hectorcorrea commented 3 years ago

Add a flag to get a count of records since this is something frequently needed.

The current workaround for this is to pass the output through grep and wc:

marcli -file=big_marc_file.xml -fields=LDR | grep LDR | wc -l