Awk Snippet for Extracting XML Messages with a Given ID from a Log File
I recently had occasion to extract XML messages with a specific id from log files, resulting in the following gnarly awk snippet. The sed statement at the end is for stripping out some unwanted debug statements. There must be a better way to do this, let me know in the comments (except don’t, because they […]