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

Comments

Leave a Reply

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