[techtalk] Limits of grep?

Jeff Dike jdike at karaya.com
Wed Sep 27 11:22:47 EST 2000


awendt at putergeek.com said:
> >> find . -type f -print | xargs grep <pattern> /dev/null
> 
> I don't get it. I doubt it hurts, but why the /dev/null? 

To prevent grep from reading stdin (and just sitting there) if <pattern> is 
empty.

				Jeff






More information about the Techtalk mailing list