Answers for "bash get filename containing string"

5

bash find all files containing string

grep -r '/path/to/somewhere/' -e 'pattern'
Posted by: Guest on October-29-2020
0

bash if file contains string

if grep -q SomeString "$File"; then
  Some Actions # SomeString was found
fi
Posted by: Guest on March-24-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language