|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T s
Length: 832 (0x340) Types: TextFile Names: »scr.sh«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Cubes/scr.sh«
#! /bin/sh # vi:set sw=4 ts=4: # # scr: Super CubeRank (cuberank combining your favorite options) # PATH=/usr/games:/bin:/usr/bin umask 066 cmds=/tmp/scr.cmds$$ text=/tmp/scr.text$$ trap "rm -f $cmds $text;exit 1" 1 2 3 15 rm -f $cmds $text # players in last game played cuberank -g1 $* >> $text # players ranked within 3 cuberank -n3 $* >> $text # top 4 humans cuberank -h $* | sed 5q >> $text # top 5 players, record-holding players, and favorites cuberank $* | sed -n -e ' 1d 2,6{;p;d;} /\*/{;p;d;} / Kamelion /{;p;d;} ' >> $text # next 5 up and marking commands cuberank -u $* | sed -n -e ' 1d s/^ *[0-9]* //p s/^\( *[0-9]*\) .*/\/^\1 \/s\/\/\1*\//w '$cmds' 6q ' >> $text # sort by rank uniquely and mark next up sort +0nu $text | sed -f $cmds rm -f $cmds $text exit 0