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

Your Turn

These exercises might help you understand how to use programs together to process text.

  1. In Redirecting Streams of Text, you used the ps command to see the list of all processes running on the machine. Use the ps -ef and grep commands together to search for a process by name. Once you’ve found the result, use another tool you learned about in this chapter to extract just the process ID from the results. Although you can do this with the ps command itself, try to parse it out using a different method.

  2. Use the sed and awk command to turn a directory listing into an HTML document. Ensure your document has a proper HTML header and footer as well.

  3. In the streams_of_text folder, you’ll find a file named awesome.log, which is part of an Apache ...

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