“-n"的实际含义是什么?在sed? [英] What actually the meaning of "-n" in sed?

查看:48
本文介绍了“-n"的实际含义是什么?在sed?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据http://linux.about.com/od/commands/l/blcmdl1_sed.htm

禁止自动打印图案空间

无论是否使用 -n,我都进行了测试,sed 将产生相同的结果

I've tested with or without -n, sed will produce same result

我不明白空格是什么意思.

I dont understand what space does it means.

推荐答案

试试 sed 什么都不做:

Just try a sed do-nothing:

sed '' file

sed -n '' file

第一个会打印整个文件,第二个不会打印任何东西.

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

这篇关于“-n"的实际含义是什么?在sed?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆