$variable_length_string
printf "%-80s %s\n" "$variable_length_string" "$string2"
string1=foo padsize=$((80-${#string1})) printf '%s' "$string1" printf '%*s' "$padsize" printf '%s\n' pass