amenditman Posted November 8, 2012 Share Posted November 8, 2012 A really nice tutorial about using grep command. If you don't know it, you should. One of the most useful and powerful utilities built into Linux/Unix systems. Check it out on pinehead.tv The grep command allows searching the contents of a file from thecommand line. It’s a very useful tool to find a particular line in, say, a log file or a conf file. And because it’s a command line program, you can combine it with other commands in various ways to produce powerful results. In this tutorial, you will learn both the basics and some more advanced applications of grep. 2 Quote Link to comment Share on other sites More sharing options...
securitybreach Posted November 8, 2012 Share Posted November 8, 2012 Nice tutorial!! I have used grep for many years but there were a few tips on that page that I was not familiar with. Quote Link to comment Share on other sites More sharing options...
amenditman Posted November 8, 2012 Author Share Posted November 8, 2012 Nice tutorial!! I have used grep for many years but there were a few tips on that page that I was not familiar with. Yes, it is an extremely useful and flexible tool. But at the same time it follows the Unix philosophy, "a utility shall do only one thing and do it completely".I am constantly reading the man page and the info pages for grep, every time I seem to find a new power feature I had not known before. Quote Link to comment Share on other sites More sharing options...
sunrat Posted November 9, 2012 Share Posted November 9, 2012 Nice one! I learned something in the first example. Instead of doing grep <needle> <haystack> I've always done cat <haystack> | grep <needle> I will now save myself valuable seconds and wear on my fingers. 1 Quote Link to comment Share on other sites More sharing options...
amenditman Posted November 9, 2012 Author Share Posted November 9, 2012 Nice one! I learned something in the first example. Instead of doing grep <needle> <haystack> I've always done cat <haystack> | grep <needle> I will now save myself valuable seconds and wear on my fingers. Yay! Command line foo strikes again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.