Linux常用命令 - nl命令详解

时间:2021-02-23 14:33:16   收藏:0   阅读:0

21篇测试必备的Linux常用命令,每天敲一篇,每次敲三遍,每月一循环,全都可记住!!

https://www.cnblogs.com/poloyy/category/1672457.html

 

显示行号,除了空行

默认就是这个

nl test.txt nl -b t test.txt

 

无论是否为空行,都显示行号

nl -b a test.txt

 

行号靠最左显示

nl -n ln test.txt

技术图片

 

 

行号靠最右显示

nl -n rn test.txt

技术图片

 

 

行号靠最右显示,不足位数左边补0

nl -n rz test.txt

技术图片

 

 

 

 
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!