Linux / Unix has a grep command-line tool that you can use to search for multiple files for a string. For example, if I wanted to search for strcpy in all files:
~/sandbox$ grep -rs "strcpy" * test.c: strcpy(OSDMenu.name,"OSD MENU");
-r gives the search recursively, so you get all the files in all directories (from the current). -s ignores warnings if you run unreadable files.
Now, if you want to find something ordinary, and you canβt remember the case, there are options like -i to allow insenstive searches.
~/sandbox$ grep -rsi "myint" * test.c: int myInt = 5; test.c: int MYINT = 10;
You can also use regular expressions if you forget exactly what you were looking for (indeed, the name "grep" comes from the command sed g / re / p - global / regular expression / print:
~/sandbox$ grep -rsi "my.*" * test.c: int myInt = 5; test.c: int MYINT = 10; test.c: float myfloat = 10.9;
source share