Here you go, Mike.
Run this:
Code:
#!/bin/bash
set -e
echo -e "\nStep 1: Get a deck of playing cards." \
"\nStep 2: Remove the jokers and the face cards." \
"\nStep 3: Use gedit in Ubuntu to create a text file where you manually map each of the remaining forty cards to a unique question."
for i in {4..1056..3}; do
echo "Step $i: Manually shuffle the cards."
echo -e "Step $(( i + 1 )): Create a new text file using gedit in which you arrange the questions according to the order of your shuffled cards" \
"\n and the mapping you made in Step 3."
echo "Step $(( i + 2 )): Print the file on a piece of paper."
done
echo -e "Step 1057: Stack all your printed papers and bind the stack with a couple of rubber bands." \
"\nStep 1058: Turn the stack in to your teacher." \
"\nStep 1059: Don't worry about any duplicates in your stack." \
"\n There's hardly any chance that your teacher is going to check them.\n"
exit 0
Don't work too hard, Mike.
Crusty
Bookmarks