How to look for string inside files in Ubuntu terminal

Very useful if you want to find strings inside files on a certain location.

grep -rnw 'path/to/location' -e "string I want to search"

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*