Hi ,
Is there any way i can find a file with specific word inside it.
For example if i want to find a file which has some text written inside it.
How would i form a command to search them?
# find /directory_name/where/file/resides -type f -exec grep "pattern" {} +
You can also try just grep.
grep "pattern" /dir
Thanks friends I have used following command to get my task done.
grep -r 'paternname' <location where the search should begin>