Skip to content

Instantly share code, notes, and snippets.

@katpadi
Created August 16, 2018 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katpadi/f23cfa4bcca07e8c6a7e985297974c86 to your computer and use it in GitHub Desktop.
Save katpadi/f23cfa4bcca07e8c6a7e985297974c86 to your computer and use it in GitHub Desktop.
awk
awk -F'[ :,]' '{a[$1":"$2"["$10 "["$16"]"]++}END{for(i in a){if(a[i] > 3){print i "-" a[i]}}}' dups.log
awk -F'[ :,]' '{print $1":"$2":"$3"["$10 "["$16"]"}' dups.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment