Created
December 7, 2011 23:08
-
-
Save folz/1445208 to your computer and use it in GitHub Desktop.
Bash one-liner to find your CS grade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
glookup | grep -v '\-\-\-' | tail -n +2 | head -n -2 | sed 's/ */\ /g' | cut -d' ' -f 3 | awk '{ split($0,a,"/"); num += a[1]; den += a[2] } END { print num/den }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment