I've been trying to learn shell script recently, and the one thing that's never been very clear to me in any of the tutorials i've read is how to concatenate integers and strings for the printf
command. Specifically, I was wondering how to use this to display a character in a certain position on the Terminal(command prompt) window. For example, in python, when I'm not using curses or pygame, i'd do something like:
x = 40
y = 12
ship = "|-^-|"
print(("\n"*y)+(" "*x)+ship)
if the way I am approaching this is the "correct" way for shell, then I would like some help and maybe a link to a good tutorial for any problems I might run into later. However, if this is not what I should be doing, then I would really like an explanation on why not and what I should be doing instead. Many thanks in advance