bash echo函数的问题

Nad*_*ern 1 bash echo

我如何在bash中使用echo进行打印,这样行就不会"跳跃"abit到变量长度的正确原因你可以帮我一个这样做的命令

Gre*_*ill 5

尝试使用printfshell命令:

$ printf "%5d %s\n" 1 test
    1 test
$ printf "%5d %s\n" 123 another
  123 another
Run Code Online (Sandbox Code Playgroud)