@BryanLunduke

cat <file> |grep -i <pattern>

or

grep <pattern > <file>

discuss.

@JaseEW @BryanLunduke That could be interesting, especially if you throw awk in the mix. Then go a step further, and sub awk in for grep , thereby eliminating one of the pipes.
@JaseEW
grep -i <pattern> <file>
obviously. :P
This is probably the one I use the most though:
find <directory> -type f -print0 | xargs -0 grep -i <pattern>