I want to loop over some values and I know I can simply use a for loop but is there any other way that I can replace a variable value in a command at the end of the command?
Somewhat like
echo 11"$p" < 8 #toprint 118
echo 11"$p" < 9 #toprint 119
echo 11"$p" < a #toprint 11a
I want to be able to replace certain variables with my value but at the end of the command. I know there are multiple ways to do this so I'm not asking for other ways.