searching text within a folder in linux
i just wonder if this is possible (searching text within a folder in linux), i doing programming i need to know in which file certain funtions are, any one?
thank you Muby |
find /path/to/folder -type f | grep 'text string'
This should recursively search through the files in folder for the given text string. |
If you just need to search only a single directory (and no subdirectories):
Code:
grep "string to search" * Code:
find /dir/to/search_1 /dir/to/search_2 -type f -print | xargs grep "string to search" |
or use grep -r
|
bigrigdriver, speck & chrism01 thank you very much
|
All times are GMT -5. The time now is 05:40 AM. |