Parse a particular string in files in particular directory and its sub-directories
Hi
I want linux command to parse a particular string or pattern in files that are in my home directory and its sub-directory. Thanks in Advance. Regards Rajiv |
I would use the "find" command---example:
from your home directory: Code:
find . -name "*string*" "man find" for details |
When you say in files, do you mean in the name of the file or the contents of the text based file?
|
Code:
grep -r 'pattern' /path/of/home/dir |
To elaborate:
|
All times are GMT -5. The time now is 06:43 PM. |