Linux查看文件内容空白行不编号


 description

在Linux中查看 cmdhelp.txt 内容,并对非空白行编号

 command

cat -b cmdhelp.txt 

 parameter

cat : 查看文件内容
-b, --number-nonblank : 对非空白行进行编号

 result

     1  a
     2  b
     3  c
     4  d

     5  e

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.