[SLUG] grep

john at johnallsopp.co.uk john at johnallsopp.co.uk
Thu Mar 30 17:24:48 BST 2006


Hi

This time I've read the manual.

grep -c "thingy" *

prints all the filenames in the current directory with the match count
for each. It prints the filenames with zero matches too.

How do I get it just to print the matching file names and the count?

J




More information about the Scarborough mailing list