logcompress.awk 185 B

123456789
  1. {
  2. verb[$4] = $3
  3. data[$4] = sprintf("%s %s %s %s %s %s", $5, $6, $7, $8, $9, $10)
  4. }
  5. END{
  6. for(i in verb)
  7. printf("%s %s %s\n", verb[i]=="d" ? verb[i] : "a", i, data[i]) |"sort +1"
  8. }