DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

NetHack Death Statistics

  • submit to reddit
        This shell script reads in a NetHack logfile & outputs a list of all the things that have killed you, with their frequencies.

This script was originally posted to by Faux_Pseudo.
grep killed /usr/games/lib/nethackdir/logfile | awk -F killed '{print"killed"$NF}' | sort | uniq -c | sort -r