I am trying to print space in for loop by the script below
Code:
#!/bin/bash
for i in - - - - - - up to date; do
echo -n $i
sleep 0.5
done
the output I want is
------ up to date
but the script output
------uptodate
How can I print spaces where I want?
thanks in advance.