From the journal

To find files which has specific text in your server.

How to print the files which has a string through out the server: Use this command: find /www/\ /httpdocs/ -type f -iname "\ .php" | xargs grep 'string goes here'

Explore this page ↓
Share

How to print the files which has a string through out the server: Use this command:
find /www/*/httpdocs/ -type f -iname "*.php" | xargs grep 'string goes here'

Keep reading