Created
July 28, 2016 16:28
-
-
Save SantiagoTorres/299bddcd53b1bc9b79d116464ec31746 to your computer and use it in GitHub Desktop.
eatstuff
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 | |
SLEEPTIME=.1 | |
eat=$1 | |
length=$(echo $eat | wc -c) | |
clear | |
echo ":[$eat]" | |
sleep $SLEEPTIME | |
clear | |
newlength=$(echo "$length/3" | bc ) | |
for i in $(seq $length -1 $newlength) | |
do | |
echo ":[$(echo $eat | head -c $i)]" | |
sleep $SLEEPTIME | |
clear | |
done | |
for i in $(seq $newlength $length) | |
do | |
echo ":[$(echo $eat | head -c $i)]" | |
sleep $SLEEPTIME | |
clear | |
done | |
for i in $(seq $length -1 0) | |
do | |
echo ":[$(echo $eat | head -c $i)]" | |
sleep $SLEEPTIME | |
clear | |
done | |
echo ":]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment