find in files linux code example
Example 1: find text in folder
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: linux find any file linux
find . -print | grep -i *.txt
Example 3: linux find file containing text
find 'C:/Users/JacquesK' -name '*.*' -exec grep 'Random text to find' {} /dev/null \;
Example 4: find in file linux
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 5: linux find file
find . '(' -name "Test*.pm" -a ! -name 'Useless*' ')'
Example 6: how to search keyword in linux
grep -w phoenix *