How to use "grep" command on Unix/Linux operating systems. Here you can find descriptions with simple examples of the "grep" command. The *grep* filter searches a file for a particular _pattern_ of _characters_, and displays all lines that contain that pattern. The pattern that is searched in the file is referred to as the *__regular expression__* (grep stands for globally search for regular expression and print out).