Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
command line how to find all files that have a string
Dannyboy
Programming language:
Shell/Bash
2021-05-15 23:39:20
0
Q:
command line how to find all files that have a string
Julia Shulenina
Code:
Shell/Bash
2021-01-27 13:56:20
grep -rnw '/path/to/somewhere/' -e 'pattern'
-1
Tags
string
line
file
files
command
find
how
Related
linux find file containing text
search all folders for file match linux
linux find files without string
read string by string in file in linux
linux search for a given string in all files recursively
find number of occurances of a string in a file shell
linux find files ending with
find string in all files powershell
how to search for a word in files in linux
find text pattern in file linux
bash find text in specific file
bash find text in all csv files
New to Communities?
Join the community