Answers for "find a text file in linux command without knowing directory"

3

find text in all files linux

grep -rnw '/path/to/somewhere/' -e 'pattern'
Posted by: Guest on November-17-2020
3

find text in linux file

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
Posted by: Guest on March-07-2020

Code answers related to "find a text file in linux command without knowing directory"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language