Search Results

Search: Posts Made By: djaks111
19,410
Posted By alister
printf is padding two arguments (neither of which...
printf is padding two arguments (neither of which contains any spaces) because the shell is splitting the unquoted expansion of $myvar. Double quote your variable.

Regards,
Alister
19,410
Posted By jim mcnamara
myvar="123" myvar=$(printf "%-10s" $myvar) ...
myvar="123"
myvar=$(printf "%-10s" $myvar)
echo ":$myvar:"
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy