Linked by Thom Holwerda on Sat 10th Jan 2015 00:38 UTC
General Unix

grep is a Unix command line utility (well most Unix utilities are command line) that searches the input files for pattern and prints lines that contain the pattern. If you are reading this you, you are probably no stranger to grep.

grep was written by Ken Thompson, the same guy who wrote Unix. grep first appeared in Unix v4 with limited features as compared to today's grep.

I've used grep so much over the years. One of the countless little utilities that's the staple of all UNIX-like systems that you never really think about, but use all the time.

Permalink for comment 602952
To read all comments associated with this story, please click here.
Comment by defdog99
by defdog99 on Sat 10th Jan 2015 18:47 UTC
defdog99
Member since:
2006-09-06

Regular Grep takes wildcards...So you can be fuzzy with those.

I'll tell you the biggest boon was when someone added -r for recursive directory searching. Older unixes had to use find / -exec grep {} /dev/null \; combos. So much easier now-a-days.

Reply Score: 2