Hi there,
I have two variables COUNT and AMOUNT (I know original variable names), I want to format these two variables so that they have leading zeroes and I then want to add them to a file.
I cannot get the variables to have leading zeroes I'm using the following command what am I doing wrong
FRMAMOUNT=`printf "%+015" $AMOUNT`
$AMOUNT has a value of 163022578
I have two variables COUNT and AMOUNT (I know original variable names), I want to format these two variables so that they have leading zeroes and I then want to add them to a file.
I cannot get the variables to have leading zeroes I'm using the following command what am I doing wrong
FRMAMOUNT=`printf "%+015" $AMOUNT`
$AMOUNT has a value of 163022578