Unix Find and Grep
A lot of times we have to recursively find files and grep some text in each of the files, here is a handly command to do so:
find . -name “*.log” -exec grep “mytext” {} \;
No comments yet
Leave a reply
A lot of times we have to recursively find files and grep some text in each of the files, here is a handly command to do so:
find . -name “*.log” -exec grep “mytext” {} \;