It is not uncommon to have a bunch of files and need to search each of them for specific terms. In linux this is an easy thing to do…the solution below is for Ubuntu.
Let’s say we need to search all files in a folder (and its subfolders) for the term “abracadabra” .
Type in terminal:
It may take some time for large folders but in the end it returns a list with the filenames and the lines contain the term.
Some info on the syntax:
grep: powerful and ancient unix/linux command
i: Ignore case distinctions in both the pattern/term and the input
files.
n: Prefix each line of output with the 1-based line number within
its input file.
r: Read all files under each directory, recursively.
*: These characters are called wildcards. * represents all.
All linux distros support this kind of search they just follow different syntax. For windows there is Windows Grep, but I have not tested it yet.