grep -l和grep -ln

根据grep手册,

-l, –files-with-matches          Suppress normal output; insteadprintthe  nameofeach  input          filefromwhich  output would normally have been printed.  The          scanning will stoponthe first match.

grep -l,这似乎很好,由于当找到匹配时,回显包含匹配的文件名.

但是,当我这样做时grep -ln,grep会回应每一行.

难道说grep -l真的是在本场比赛的第一次出现被发现停止和停止扫描,同时grep -ln将忽略-l标志?

grep -l和grep -ln

grep -l “nodes”搜索当前包括“nodes”的关键字,并返回一行。

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
none
暂无评论...