I wanted something like this:
CUSTOMERNAME="THIS IS A TEST"
printf "| %-30s " $CUSTOMERNAME
But the problem is, that the value CUSTOMERNAME has some space. The output looks likes this:
| THIS | IS | A | TEST
But I wanted something like this
| THIS IS A TEST |
What can I do? Any ideas?
Thanks, Hauke