I have been looking for a command to find text strings within files on my linux box. After much searching I am now using the following command which does the job perfectly.

find /path/to/folder/ -type f -print0 | xargs -0 grep -l “TEXT YOU WANT TO FIND”

let me know if this is useful or can be improved.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Live
  • MySpace
  • StumbleUpon
  • Technorati
  • Twitter
  • Yahoo! Buzz