Answers for "search contents of files command line"

11

command line how to find all files that have a string

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

use find command to search file contents

# Issue: using find command in unix to search for file contents recursively
find . -type f -name "*.csv" | xargs grep 'unexpected text stuff'
Posted by: Guest on February-18-2021

Code answers related to "search contents of files command line"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language