Skip to content

Instantly share code, notes, and snippets.

@davethomas11
Created November 6, 2015 23:10
Show Gist options
  • Save davethomas11/1495591ecfdc0b046bb4 to your computer and use it in GitHub Desktop.
Save davethomas11/1495591ecfdc0b046bb4 to your computer and use it in GitHub Desktop.
#!/bin/bash
#Jerry pushes dave in the elevator
for i in `seq 1 10`
do
clear
printf "\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
awk "BEGIN {while (c++<$i) printf \"-\"}"
printf "|"
j=$(echo 10-$i | bc)
awk "BEGIN {while (c++<$j) printf \" \"}"
if [ $i -lt 3 ]
then printf "._."
elif [ $i -lt 9 ]
then printf "o_o"
elif [ $i -lt 10 ]
then printf "x_x"
fi
awk "BEGIN {while (c++<$j) printf \" \"}"
if [ $i != 10 ]
then printf "._.|"
else
printf "|"
fi
awk "BEGIN {while (c++<$i) printf \"-\"}"
sleep 0.25
done
for i in `seq 1 25`
do
printf "\n"
sleep 0.1
done
@davethomas11
Copy link
Author

Contributions from Jerry v2, and Vince v3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment