[SLUG] grep

Stephen O'Neill soneill84 at yahoo.co.uk
Fri Mar 31 14:14:53 BST 2006


Al Girling wrote:
> Does:
>
> $ grep -c "thingy" * | grep :[1-9]
>
> do what you want?

I don't know which version of grep you are using, but the '-l' flag may 
do what you want:

 -l, --files-with-matches  only print FILE names containing matches

Steve O

		
___________________________________________________________ 
NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yahoo.com/





More information about the Scarborough mailing list