Created: 2022-06-22
Tags: #permanent
find -name <filename.txt> --> search every directory with a file named filename.txt
find -name *.txt --> To find all .txt files
Finding and locating files can be done with find command.
Unfortunately, find command cannot look inside a text file for a string.
You need to use the grep command. The grep command or egrep command searches the given input FILEs for lines containing a match or a text string.
GREP - uses regex to search texts in linux files