grep is a historical programming language created in 1974. grep is a command-line utility for searching plain-text data sets for lines that match a regular expression. Its name comes from the ed command g/re/p (globally search a regular expression and print), which has the same effect: doing a global search with the regular expression and printing all matching lines. Grep was originally developed for the Unix operating system, but later available for all Unix-like systems.. Read more on Wikipedia...

45Years Old 20Users 0Jobs
  • grep ranks in the top 50% of languages
  • the grep wikipedia page
  • grep first appeared in 1974
  • See also: unix, regex, perl
  • I have 38 facts about grep. what would you like to know? email me and let me know how I can help.

Example code from Wikipedia:

$ grep root /etc/passwd
root:x:0:0:root:/root:/bin/bash
operator:x:11:0:operator:/root:/sbin/nologin

$ grep -n root /etc/passwd
1:root:x:0:0:root:/root:/bin/bash
12:operator:x:11:0:operator:/root:/sbin/nologin

$ grep -c false /etc/passwd
7

Last updated August 25th, 2019