Gangmax Blog

How to search file content in files under a directory

Refer here:

1
grep -iR '53482' *.*

Note: search ‘53482’ in all the files under the current directory.

-i : Ignore case distinctions in both the PATTERN (match valid, VALID, ValID string) and the input files (math file.c FILE.c FILE.C filename).
-R : Read all files under each directory, recursively

Comments