Hello,
Want to do a fancy effect by printing [OK] at the end of the last line when a task is finished.
Got this:
echo "$0: Starting backup process in '$backupdir'... "
sleep 3
echo '[OK]'
I tried different things at the end of the first echo, at the beginning of the second like \r
, \c
, \
, Googled it... No good.
I want it to output this:
./backup.sh: Starting backup process in '/backup'...
... And 3 sec later, add the [OK]
:
./backup.sh: Starting backup process in '/backup'... [OK]
Thanks,