grep to find string pattern in file code example
Example 1: linux search for line in file
grep -R "keyword" /directory/
Example 2: ubuntu show line in file containing text
grep -hnr "the_string" /media/slowly/DATA/lots_of_files
grep -R "keyword" /directory/
grep -hnr "the_string" /media/slowly/DATA/lots_of_files