HOWTO: Use the Grep Command
One of the problems with writing an entry on the grep command is that it’s so invloved. Grep is a “take it or leave it” command. By that I mean that it can be used easily and quickly with few options, or it can be used with jedi-like mastery. You can basically get as involved as you want.
My use of grep is pretty basic. I typically use it to find things like the pid of a running process so I can kill it:
Ps aux | grep some_process
But there are so many more wonderful and indepth ways to use so. In fact, after thinking about it for many days, I’ve decided that I am not now, nor likely to ever be, qualified to write an entry on it.
Therefore, I have scoured the web and have found a decent, if basic, tutorial on grep, egrep, and fgrep. I would also ask readers to please link to other good toturials out there in the comments on this post.
I know it’s kind of lame not to write my own post, but this is legitimately out of my area of expertise.
Related Stories
POSTED IN: How To
2 opinions for HOWTO: Use the Grep Command
meus
Oct 28, 2006 at 1:03 am
the best how-to i ever read :-)
roger
Aug 9, 2007 at 3:33 am
Brilliant
Why aren’t there more howtos like this one!
Have an opinion? Leave a comment: