find in files in folder linux ubuntu code example
Example 1: find in files ubuntu
grep -r 'pattern_to_match' directory_to_search
Example 2: 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" .