Quote:
Originally Posted by babu198649
how to redirect the output of find command to input of egrep.
an example command would be helpful
|
You can use the
xargs command. Example:
Code:
find . -type f | xargs egrep xxx
Be advised that this will cause problems with file/directory names that contain spaces and stuff like that. IMHO you are much better-off using the
-exec built-in option of the
find command. Example:
Code:
find . -type f -exec egrep xxx {} \;