Encyclopedia > Grep

  Article Content

Grep

grep is a Unix command whose name comes from the g/re/p ("global (a regular expression) print") search command in the editor ed. It takes a regular expression on the command line, reads standard input or a list of files, and outputs the lines that match the regular expression.

The command is also used in the Perl programming language.

Grep is often used as a verb, a synonym of search, e.g., "I grepped the Wikipedia for an article on Unix searching and found it here."



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Springs, New York

... under the age of 18, 6.3% from 18 to 24, 31.0% from 25 to 44, 26.9% from 45 to 64, and 13.5% who are 65 years of age or older. The median age is 40 years. For every 100 ...

 
 
 
This page was created in 82 ms