What actually the meaning of “-n” in sed?

后端 未结 4 1662
粉色の甜心
粉色の甜心 2021-01-01 23:05

According to http://linux.about.com/od/commands/l/blcmdl1_sed.htm

suppress automatic printing of pattern space

I\'ve tested wi

4条回答
  •  渐次进展
    2021-01-02 00:00

    Just try a sed do-nothing:

    sed '' file
    

    and

    sed -n '' file
    

    First will print whole file but second will NOT print anything.

提交回复
热议问题