намерете текст във всеки файл linux
grep -rnw '/path/to/somewhere/' -e 'pattern'
баш намери всички файлове, съдържащи низ
grep -r '/path/to/somewhere/' -e 'pattern'
намиране на текст във файл linux
grep 'word' filename
grep 'word' file1 file2 file3
grep 'string1 string2' filename
cat otherfile | grep 'something'
command | grep 'something'
command option1 | grep 'data'
grep --color 'data' fileName
linux намерете всички имена на файлове, съдържащи низ
find . -name "*ABC*" -exec grep -H 'XYZ' {} +