I did some research but I was unable to find anything to help, I need to find the word "war" in a text file, I know that I can use the cat command, but I need to modify it somehow, can someone help?
Asked
Active
Viewed 9.3k times
8
muru
- 207,228
B0neCh3wer
- 81
1 Answers
19
You can do it by grep. You do not need cat for that.
grep -w war file_name
You can use cat too, if you like
cat file_name | grep -w war
but it is longer.
Pilot6
- 92,041