Friday, October 18, 2013

How can I grep the results of FIND using -EXEC and still output to a file?

Use the following command to grep error_log files on *nux system and send output to "error_logs.rtf"

find . -name 'error_log' -exec ls -lh {} \; > error_logs.rtf

No comments:

Post a Comment