Grep

From Wiki

Jump to: navigation, search

To Find Text in a File(s)

grep needle haystack.file

or to search for text in a Directory

grep -Ri needle /path/haystack/

the -i ignores case.

Personal tools