Contents of Grep Grep is a program used to print lines from a file matching a specified pattern. Installed programs: egrep (link to grep), fgrep (link to grep) and grep