search for files ubuntu command line code example
Example 1: find in files ubuntu
grep -r 'pattern_to_match' directory_to_search
Example 2: search file in ubuntu
$ find /path/to/file/ -iname filename
grep -r 'pattern_to_match' directory_to_search
$ find /path/to/file/ -iname filename