On Tue, 2007-12-18 at 17:55 +1100, Peter Hardy wrote: > I've got a sixpack of beer for a working PostScript variant. :-)
drop this in a file called count.ps
%!PS
/count { 0 { currentfile read { (,) 0 get eq { 1 add } if } { 20
string cvs print (\n) print stop } ifelse } loop } def count
and then use the following command
cat count.ps input.txt | gs -
and, yes, I tested it before posting.
Cascade Premium, please.
Regards
Peter Miller <[EMAIL PROTECTED]>
/\/\* http://miller.emu.id.au/pmiller/
PGP public key ID: 1024D/D0EDB64D
fingerprint = AD0A C5DF C426 4F03 5D53 2BDB 18D8 A4E2 D0ED B64D
See http://www.keyserver.net or any PGP keyserver for public key.
"DRM doesn't anger consumers, content owners abusing DRM angers consumers."
signature.asc
Description: This is a digitally signed message part
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
