I know how to use sprintf for padding: %02d
And I know how to use if for the argument position: %2$d
But, I cannot figure out how to combine the two.
How would I padd it AND specify the argument position?
Any thoughts/suggestions would be greatly appreciated?
X
And I know how to use if for the argument position: %2$d
But, I cannot figure out how to combine the two.
How would I padd it AND specify the argument position?
Any thoughts/suggestions would be greatly appreciated?
X