Back in Chapter 6, we showed you how to edit delimited files with awk, which is cool because it lets you extract specific pieces of information, such as names and phone numbers, from delimited files. As shown in Code Listing 16.2, you can also use awk to generate reports. We start with the information from an ls -la command, then use awk to generate a report about who owns what.
To generate reports with awk:
Tip
Remember that you could embed awk scripts in a shell script, as with the previous sed example, if it's something you'll use frequently.
3.15.7.197