How to find a file containing a particular text string

Search all subfirectories recursively

grep -r "redeem reward" /home/tom/

To display only fines names, add -H option, or

$ grep -H -R vivek /etc/* | cut -d: -f1

To ignore case, add -i option.


Revision #2
Created 2024-03-27 05:34:04 UTC by Admin
Updated 2024-03-27 05:37:03 UTC by Admin