Answers for "find string in files linux"

3

find string in files linux

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

linux find string in files in path

find . -name '*.js' -exec grep -i 'string to search for' {} \; -print
Posted by: Guest on July-08-2021
0

linux find files without string

# syntax: 
# find *</path/to/dir> ! -name '*<substring-to-exclude>’

# example: 
find . ! -name '*.csv'
Posted by: Guest on May-18-2020

Code answers related to "find string in files linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language