I've got a KSH script that uses awk to print $5 and $6 to the screen. $5 can be 1 or 2 digit number, and $6 can be up to 7 digits.
I'd like to justify spacing between the two columns to appear below:
1 1234456
2 12359609
20 5309286
Currently, I have hardcoded spaces with echo " ", but if $5 is 2 digits, it obviously adds an extra space before $6.
Any help would be appreciated.
Thanks in advance...
I'd like to justify spacing between the two columns to appear below:
1 1234456
2 12359609
20 5309286
Currently, I have hardcoded spaces with echo " ", but if $5 is 2 digits, it obviously adds an extra space before $6.
Any help would be appreciated.
Thanks in advance...