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 602933
To read all comments associated with this story, please click here.
Comment by ssokolow
by ssokolow on Sat 10th Jan 2015 12:25 UTC
Member since:

I use grep a lot but, as a programmer, I probably use ack (ack-grep on Debian) more.

Ignoring directories like .svn and .git by default, limiting to an easily extended list of known filetypes, and having easy by-type filtering presets (which map one name to one or more extensions) really saves thought and time.

Reply Score: 3