grep: Coloring matched text


show more grep: Coloring matched text provides you with in-depth training on IT. Taught by Kevin Skoglund as part of the Unix for Mac OS X Users show less
please wait ...

grep: Coloring matched text

You can see how grep is a really power full tool. There is one more thing that I want to show you. Let me just do grep for lorem ipsum again. lorem inside lorem ipsum. Now here's the content there. So you see that this line has lorem in it and this line over here has lorem in it and here it says lorem again, so I'm seeing each of those lines. But it's a little hard to find those matches. Grep also offers an option called color which is really useful. Color and now you can see that it colors those. Color also can have a couple of variations. color equals auto, color equals always, or color equals never.

Always of course will always provide the coloring. Never will not do it. What auto does is auto says I want you to color it if you're showing it to me on the Terminal, but not when you're sending it somewhere else like to a file or a pipe. And the reason why it is, there is actually some special characters around the word lorem there every time so that it knows to display...

grep: Coloring matched text
Video duration: 2m 57s 6h 35m Beginner

Viewers:

grep: Coloring matched text provides you with in-depth training on IT. Taught by Kevin Skoglund as part of the Unix for Mac OS X Users

Subject:
IT
Software:
Mac OS X Unix
Author:
please wait ...