0

Is there a command I can use to find a certain word in a file? I tried using the find command without any success.

muru
  • 207,228

1 Answers1

4

Yep. grep will be your friend here.

Simply do something like this:

cat file.txt | grep wordtomatch