ubuntu search inside files 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
Example 3: how to search in directory files in ubuntu
# this will search all subdirectories for your text (no case sensitivity)
# it also prints the line number of the text in file
grep -inR "your text" .