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