Monday, 15 April 2019

Search for ip address or text inside all the directory of Unix server

How to search anything inside all the files?

 find . -type f -exec grep -l "20.198.94.70" {} +

 find . -type f -exec grep -l "Test" {} +

find . | xargs grep 'http://abwasiq.com'

No comments:

Post a Comment