shuffle.sh (106B)
1 [ $# -ne 1 ] && { print "Try again."; exit 1; } 2 tmpfile="shuffled.tmp" 3 shuf $1 > $tmpfile 4 mv $tmpfile $1