grep
GREP рекурсивный поиск текста в файлах и папках
-ror-Ris recursive ; use-Rto search entirely-nis line number, and-wstands for match the whole word.-l(lower-case L) can be added to just give the file name of matching files.-eis the pattern used during the search
Filters
--exclude, --include, --exclude-dir flags used for efficient searching.
- This will only search through those files which have .c or .h extensions:
- This will exclude searching all the files ending with .o extension:
- For directories it’s possible to exclude one or more directories using the
--exclude-dirparameter. For example, this will exclude the dirsdir1/,dir2/and all of them matching*.dst/: