Created
November 6, 2015 23:10
-
-
Save davethomas11/1495591ecfdc0b046bb4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Contributions from Jerry v2, and Vince v3