I have below printf statement in shell script
printf "%-60s read-successful %-30s$value1 \n" "${value2}" >> output1
output expected:
value2 read-successful value1
I am getting correct output when value2 is not IP address but when its IP output is not as expected.
when i tried with set -x.It shows me below
printf '%-60s read-successful %-30s$ \n' $'10.63.112.56\r'