Skip to content

Instantly share code, notes, and snippets.

@aidvu
aidvu / nSuffix.sh
Last active October 2, 2015 23:08
Suffix Extractor
grep PERSON directory | tr '[A-Z]' '[a-z'] | cut -f 1 | awk '{ print substr( $0, length($0) - 0, length($0) ) }' | sort | uniq -c | sort -nr | head -10