Answers for "use find to search for text in a file in bash"

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 "use find to search for text in a file in bash"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language