Learn Advanced Techniques

Now that you know the basics of working with the command line, I want to show you a few techniques that build on your knowledge and enable you to perform more advanced tasks.

First I tell you how to Pipe and Redirect Data—two powerful (and related) techniques you can apply to many different commands in order to combine them in useful ways and do more with your data. Next, you’ll Get a Grip on grep, a tool that helps you locate files containing specified patterns of characters. Finally, I explain the basics of how you can Add Logic to Shell Scripts, making them much more useful than simple sequences of commands.

As you can imagine, these are but a few of many advanced techniques for using the command line, but I’ve found ...

Get Take Control of the Mac Command Line with Terminal, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.