打印行号的8种命令方法

 cat -n oldboy.txt 

       nl oldboy.txt

       less -N nginx.conf

       vi oldboy.txt   set nu

       grep -n “. “ oldboy.txt

       grep -n “. *“ oldboy.txt

       awk ‘{print NR” “$0}’  oldboy.txt

       sed  ‘=’  /etc/rsyslog.conf

 

posted on 2016-07-11 13:32  王波波的波  阅读(653)  评论(0)    收藏  举报