28 April 2011

This snippet shows how to search a text form files. We use grep command for it and display directories of files when results form files are found.

Source code viewer
  1. grep -i -R -l 'string to search from files' /location/from/where/you/wish/to/search/*
Programming Language: Bash