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...
- grep ranks in the top 20% 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 November 16th, 2019