Grep

Optimising use of grep in different scenarios

Grep specific words in a list of files:

Option 1

grep -rl "word to search" * (searrches all files in current directory)

Option 2

grep -rl "word to search" <destination of fille/s>

Last updated