grep for a word in all files in linux

The fol­low­ing com­mand will search for the string “hello” in the con­tent of all the files within all sub­fold­ers of the spec­i­fied path

grep -r "hello" /path/to/search/

Ryan Sukale

Ryan is a UX engineer living in San Francisco, California.

You may also like...