Find a string of text inside a directory and search all the subdirectories.
grep -rnw '/path/to/somewhere/' -e 'pattern'
Replace a string of text inside a file by searching for another string of text.
sed -i 's/original/new/g' file.txt
Find a string of text inside a directory and search all the subdirectories.
grep -rnw '/path/to/somewhere/' -e 'pattern'
Replace a string of text inside a file by searching for another string of text.
sed -i 's/original/new/g' file.txt