Answers for "linux find text in single file"

8

find text in any file linux

grep -rnw '/path/to/somewhere/' -e 'pattern'
Posted by: Guest on January-23-2020
0

bash find text in specific file

find <your directory path> -name "*.file_type" -type f | xargs grep "word"
Posted by: Guest on October-26-2020

Code answers related to "linux find text in single file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language