These exercises might help you understand how to use programs together to process text.
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.
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.
In the streams_of_text folder, you’ll find a file named awesome.log, which is part of an Apache log file. Use what you learned in this chapter to find the following:
18.117.103.219