Archive for December, 2010

Finding files containing…

Posted: 10 December 2010 in Uncategorized

If like me recently you have to find files containing a certain string, you can do this from the command line very easily…

hayStack="/tmp"; # set this to where you want to look for files
seeking="needle"; # set this to what you need to find
find $hayStack -name "*" -type f -exec grep -l "$seeking" {} \;