The problem is simple.
for i in `seq $begin $progress_length` ; do
progress_bar=$progress_bar'#'
done
for i in `seq $middle $end` ; do
empty_space=$empty_space' '
done
I need empty_space to position content after the progress bar. I’ve expected that it will be string of x whitespaces. But finally string is empty. How may I create string of x whitespaces?
The problem may be because
$empty_spacehas only spaces. Then, to output them you have to surround it in double quotes:You can try more interesting output with
printffor example to obtain several spaces. For instance, to write 20 spaces: