On Fri, 2011-12-09 at 09:15 +0100, Jörg-Volker Peetz wrote: > With a modern grep version it is even more simple: > > grep -c 'the' /path/to/file.txt
i just tested with grep 2.9 and -c and -o does not get along well :) -c only is able to count lines within file and no the lines of output (generated by -o) greets! aL -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1323422496.3295.11.ca...@qindelbox.int.qindel.com