Skip to main content.

Wednesday, February 23, 2011

To find a string in the files under a directory:


for file in `find . `; do if [ -n "`grep "mysql" $file`" ]; then echo $file; fi; done


Comments

No comments yet

Add Comment

This item is closed, it's not possible to add new comments to it or to vote on it