search lines containing particular text in linux code example
Example 1: ubuntu show line in file containing text
grep -hnr "the_string" /media/slowly/DATA/lots_of_files
Example 2: how to search keyword in linux
grep -w phoenix *
grep -hnr "the_string" /media/slowly/DATA/lots_of_files
grep -w phoenix *