-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

The Ultimate Linux Shell Scripting Guide
By :

I’ve already shown you some fancy ways to search for files on your system. But, what if you need to search for something that’s in a file? What if you don’t know exactly what you’re looking for? Worse yet, what if you don’t even know which file to look in? Not to worry, grep
is here to help.
grep
, short for Global Regular Expression Print, is a powerful command-line utility that comes packaged with just about every Unix or Unix-derived operating system. (This includes Linux and macOS.) There’s also an available version for Windows.
You can direct grep
to search through one file or many. You can also pipe in output from some other utility so that you’ll see only the information that you want to see. And, the fact that grep
can use regular expressions allows you to perform searches even when you only have an approximate idea of what you’re searching for.
grep
isn’t hard, but is does require...