Skip to content

Instantly share code, notes, and snippets.

@ktvoelker
Created September 11, 2010 22:32
Show Gist options
  • Save ktvoelker/575627 to your computer and use it in GitHub Desktop.
Save ktvoelker/575627 to your computer and use it in GitHub Desktop.
#!/bin/sh
find ./ -name '*.dwi' \
| xargs -n1 "-d\n" egrep -l 'SINGLE:MANIAC:1[123456789]' \
| xargs -n1 "-d\n" dirname \
| xargs -n1 "-d\n" dirname \
| sort \
| uniq -c \
| sort -nk1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment