Merges a few grep | awk pipes on @bma's suggestion.