Skip to Content
Small, Sharp Software Tools
book

Small, Sharp Software Tools

by Brian P. Hogan
June 2019
Intermediate to advanced
328 pages
7h 27m
English
Pragmatic Bookshelf
Content preview from Small, Sharp Software Tools

Working with Commands

By now, you’re already pretty comfortable running commands in your shell. You’ve redirected program output, and you’ve used the command history to recall previous commands. But you can also chain commands together, execute them in different environments, and much more.

Running Multiline Commands

As soon as you press the Enter key, the shell executes the command. Some commands have a lot of options or are just very long and might not fit on your screen, and you’d like to be able to break the command into multiple lines. You can do this by typing the \ character before pressing Enter.

In Creating Pipelines of Data, you saw this example which lets you see the most-used commands in your history:

 $ ​​history​​ ​​|​​ ​​awk ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The VimL Primer

The VimL Primer

Benjamin Klein
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781680507003Errata Page