Skip to content
Browse files

Added first version of json2email_distribution.sh

  • Loading branch information...
1 parent 6704983 commit 92e417b3b99c78708ffb03b047ac66c63b0d5e05 Adam Derewecki committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 json2email_distribution.sh
View
7 json2email_distribution.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+# Usage: json2distribution file.json 4 10
+# 1st param is input file
+# 2nd param is what " split group is the email address
+# 3rd param is top X domains/counts to grab
+
+cut -d'"' -f $2 $1 | cut -d'@' -f 2 | sort | uniq -c | sort -rn | head -n $3

0 comments on commit 92e417b

Please sign in to comment.
Something went wrong with that request. Please try again.