grep: How to Search for Matching Expressions in Unix


show more grep: Searching for matching expressions 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: Searching for matching expressions

In this chapter we're going to take a look at some of the most useful and powerful Unix commands. Up until now we've really been covering the fundamentals and getting familiar with Unix, but now we are at the point where we can start doing some serious work, and the most powerful tool in the Unix toolbox by far is grep. Grep is a powerful way for us to search for text which matches patterns that we specify, and we aren't just talking about searching for simple text strings. We can define complex matching patterns by using regular expressions, and regular expression are actually part of how grep gets its name.

Grep stands for Global Regular Expression Print. If you think back to the movie where we talked about Unix text editors, I told you that the earliest Unix text editor was called ed or Ed, and if you were working inside the ed text editor and you wanted to search for something, the way you did it was by typing a g, then a forward slash and then a regular expression that d...

grep: Searching for matching expressions
Video duration: 5m 21s 6h 35m Beginner

Viewers:

grep: Searching for matching expressions 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 ...