Grep Essentials
The grep utility, which allows files to be searched for strings of words, uses a syntax similar to the regular expression syntax of the vi, ex, ed, and sed editors. grep comes in three flavors, grep, fgrep, and egrep, all of which I’ll cover in this article. The name grep is derived from the editor command g/re/p, which literally translates to “globally search for a regular wxpression and print what you find....