On Mon, 2019-03-25 at 13:49 -0600, Rick Gutierrez wrote: > > https://pastebin.com/nsJ4PUBM > I'd use awk to extract information from logs like that rather than messing around with an assemblage of grep and sed held together with bash glue: its exactly the sort of job that awk was written to tackle. Its much easier, and quicker, to write an awk script than it would be to write the equivalent Perl script.
OTOH, while the awk manpage is a great reference once you know how awk scripts work, but not a great way to learn about it. If you're interested in trying it, get a copy of Dale Dougherty's "sed & awk" - its an O'Reilly book and quite readable. Martin