12.3MviewsStack Overflow
Find every file containing some text with grep
grep -rn searches a folder recursively and prints every match with its line number; -l lists only the file names, --include keeps one file type.
Command-line tools on Linux and macOS: searching, files and shell basics.
grep -rn searches a folder recursively and prints every match with its line number; -l lists only the file names, --include keeps one file type.
grep was given a folder but searches only files unless you ask it to go into folders.