Click here

grep

Short for global-regular-expression-print, a UNIX utility that allows the user to search one or more files for a specific string of text and outputs all the lines that contain the string. The user also has the option to replace the string with another.

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.



Top Terms

Connect with Webopedia

  • What is 250 GB Data Usage?

    What is 250 GB (250 gigabytes) and why is this phrase so popular? Webopedia explains what the phrase 250 GB means in reference to data storage...

    Read More »

Did You Know? Archive »

  • Quick Reference Archive »