linux学习-expand

Linux使用过程中不常用命令expand,不知道现在记录了之后猴年马月能用上?

语法:

1
2
3
expand [-t] file
选项与参数:
-t : 后面接数字,代表一个tab按键用几个空格替换

使用:

1
2
cat -A /etc/man.config | head -n 3
cat -A /etc/man.config | head -n 3 | expand -t 6