相关推荐: linuxshellgrep shellgrep-vgrep shell中的grep命令 shellgrep命令 shell中grep命令 shell中grep命令脚本实例 linuxshell脚本命令 grepshell shell脚本grep shellgrep-n shellgrep-o shellgrep shellgrep-e shell的grep
grep是用来过滤含有特定字符的行, 能使用正则表达式搜索文本, 它在数据中查找一个字符串时, 是以正行为单位进行数据选取的. 接下来是小编为大家收集的linux-shell脚本命令grep命令,欢迎大家阅读:
linux-shell脚本命令grep命令
[ 常用选项: ]
-c:只输出匹配行的计数。
-i:不区分大小写(只适用于单字符)。
-n:显示匹配行及行号。
-s:不显示不存在或无匹配文本的错误信息。
-v:显示不包含匹配文本的所有行。
请关闭浏览器的畅读模式或者取消屏蔽JavaScript的正常运行,避免出现内容显示不全或者段落错乱。
原网页地址:https://www.ynbxsc.com/xuexi/2993091.html