Skip to content

Instantly share code, notes, and snippets.

@reddikih
Last active August 17, 2016 06:59
Embed
What would you like to do?
The template to display something in progress. and colored message will be displayed when it is finished.
#!/bin/sh
# See: http://www.m-bsys.com/linux/echo-color-1
TIME=10
echo -n "starting server"
while [ $TIME -gt 0 ]
do
echo -n "."
sleep 1
TIME=$(expr $TIME - 1)
done
echo -ne " \e[32mDONE\e[m\n" # "Done" is appeared with green color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment