1
vote
2answers
416 views

How can I right-justify variable length output?

So I don't want this: echo "9" 9 Rather I need this, with e.g.: 4 spaces before it: MAGICK "9" 9 So if I try it with 10: MAGICK "10" 10 then it will just have 3 spaces before it. How ...