For bash, use the printf
command with alignment flags.
For example:
printf '..%7s..' 'hello'
Prints:
.. hello..
Now, use your discretion for your problem.
For bash, use the printf
command with alignment flags.
For example:
printf '..%7s..' 'hello'
Prints:
.. hello..
Now, use your discretion for your problem.