I am trying to do some formatting on output data in a script and not positive how to do Left Right justify as well as width. Can anyone point me in the right direction?
you can use printf. examples
$ printf "%15s" "col1"
$ printf "%-15s%-15s" "col1" "col2"
tools like awk also has formatting capabilities
$ echo "col1 col2" | awk '{printf "%15s%15s\n", $1,$2}'
col1 col2