Skip to content

Instantly share code, notes, and snippets.

@markito
Created March 31, 2012 03:28
Show Gist options
  • Save markito/2258974 to your computer and use it in GitHub Desktop.
Save markito/2258974 to your computer and use it in GitHub Desktop.
ExceptionCounter.sh
#!/bin/bash
for X in $(egrep -o "[A-Z]\w*Exception" $1 | sort | uniq);
do
echo -n -e "$X\t"
grep -c "$X" $1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment