$ grep "redeem reward" /home/tom/*.txt
You can search for a text string all files under each directory, recursively with -roption:
$ grep -r "redeem reward" /home/tom
By default, grep command prints the matching lines You can pass -H option to print the filename for each match.
$ grep -H -r "redeem reward" /home/tom
0 comments:
Post a Comment