grep

To find a string inside files in a folder, use

grep -rnw ./ -e "STRING_TO_FIND"

Or

grep -irl "STRING_TO_FIND" ./

Or

grep -ir 'STRING_TO_FIND' ./ | cat

See ack better grep for programmers

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *