选项卡脚本输出
Tab a scripts output
我希望命令输出从:
really
long
line
输出如下:
really
long
line
可以使用 tabs
命令更改制表符宽度:
例如:
root@d6cf49e7d107:/# tabs -4 && echo -e "hello\tworld"
hello world
root@d6cf49e7d107:/# tabs -2 && echo -e "hello\tworld"
hello world
root@d6cf49e7d107:/# tabs +8 && echo -e "hello\tworld"
hello world
root@d6cf49e7d107:/# tabs +20 && echo -e "hello\tworld"
hello world
更新:设置不持久。即:在会话关闭之前它将一直有效,这意味着在脚本中使用它是安全的。
我希望命令输出从:
really
long
line
输出如下:
really
long
line
可以使用 tabs
命令更改制表符宽度:
例如:
root@d6cf49e7d107:/# tabs -4 && echo -e "hello\tworld"
hello world
root@d6cf49e7d107:/# tabs -2 && echo -e "hello\tworld"
hello world
root@d6cf49e7d107:/# tabs +8 && echo -e "hello\tworld"
hello world
root@d6cf49e7d107:/# tabs +20 && echo -e "hello\tworld"
hello world
更新:设置不持久。即:在会话关闭之前它将一直有效,这意味着在脚本中使用它是安全的。