In message <[EMAIL PROTECTED]> Jacques Vidrine writes:
: > $find . -name "*.c" -print -exec "egrep" "-i" "idt" {} \; | less
: > Here , "idt" is a search string.
: 
: That's because no one wants a separate invocation of egrep for
: every file!

     find . -name \*.c | xargs egrep -i idt | less

is shorter to type and will generally fork only a couple of times for
the entire source tree.

Warner


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to