Looking for a way to search for text in files on Ubuntu? You should get a grip on the Ubuntu grep command.
Ubuntu grep command searches input FILE or FILES for lines containing a match to the given PATTERN. By default, grep prints the matching lines.
For your information grep stands for Global Regular Expression Print.
So do I need to know regular expression to use grep?
For simple searching you don’t need to be a regular expression guru. Remember the simplest regular expression (regex) is simply a word, or more generally, a string of characters.