For example, on a UNIX command line, the user can enter
grep webpage webopedia.htm
commanding the system to search for the character string webpage in the webopedia.htm file. The result will display any and all lines in the file that contain that specific string of characters.
Grep originated from a UNIX text editor, which provided the command sequence g/re/p.