Project

General

Profile

Howto grep

find files with a specific content

this is taken from: https://tecadmin.net/find-all-files-containing-specific-text-on-linux/

this will search all files recursively for the given term

grep -rwl “search-string” /path/to/search/dir

grep -rwl “CentOS” /etc

should output a few files