· 1 min read

Recursively Search Contents of a File with Grep

The -r flag is for recursive, meaning it will also look in sub directories. The -i flag is for case insensitivity, meaning WORD and word will both be found.

grep -ir "search term" directory/path

Comments

Leave a comment