grep'ing tips (was: Re: [NTLUG:Discuss] tap[0-9]* modules? )
Rick Cook
rcook at hex.net
Thu Dec 9 00:05:54 CST 1999
>> As is so common with Unixes (or Uni?) there is yet another way to handle
>> this situation. Try out the following (which doesn't include backticks):
>>
>> find . -type f -print | xargs egrep tap0
or, alternatively:
find . -type f -exec egrep tap0 {} \;
This way, egrep gets one filename at a time...
BTW, the \ is to make the semi-colon "terminate" the -exec list rather
than being used as a command delimiter.
Rick
More information about the Discuss
mailing list