lnux命令之egrep
来源:互联网 发布:中国10大网络作家 编辑:程序博客网 时间:2024/06/05 05:52
这个可以看做是grep -E的衍生扩展命令
实例
显示文件中符合条件的字符。例如,查找当前目录下所有文件中包含字符串"Linux"的文件,可以使用如下命令:
egrep Linux *
结果如下所示:
$ egrep Linux * #查找当前目录下包含字符串“Linux”的文件 testfile:hello Linux! #以下五行为testfile 中包含Linux字符的行 testfile:Linux is a free Unix-type operating system. testfile:This is a Linux testfile! testfile:Linux testfile:Linux testfile1:helLinux! #以下两行为testfile1中含Linux字符的行 testfile1:This a Linux testfile! #以下两行为testfile_2 中包含Linux字符的行 testfile_2:Linux is a free unix-type opterating system. testfile_2:Linux test xx00:hello Linux! #xx00包含Linux字符的行 xx01:Linux is a free Unix-type operating system. #以下三行为xx01包含Linux字符的行 xx01:This is a Linux testfile! xx01:Linux
0 0
- lnux命令之egrep
- egrep 命令
- Linux之grep和egrep命令总结
- Lnux命令、压缩、归档
- lnux定时运行命令
- grep、egrep、fgrep命令
- egrep命令的实现
- grep、egrep、fgrep命令
- grep、egrep、fgrep命令
- grep、fgrep 和 egrep 命令
- grep命令与egrep命令详解
- linux基本命令grep egrep fgrep
- Linux学习之十一egrep及扩展正则表达式(egrep)
- linux基本命令grep egrep fgrep用法以及正则表达式
- linux基本命令grep egrep fgrep用法以及正则表达式
- linux基本命令grep egrep fgrep用法以及正则表达式
- linux文件内容查找高级命令 grep egrep fgrep
- 文本处理三剑客之grep、egrep、fgrep
- 骨牌铺方格
- JSP标签使用案例
- C. Find Amir
- 关于vector list 之间区别的一点总结
- MongoDB学习记录07-查询优化
- lnux命令之egrep
- java 类中写onclick
- 第122课:Spark Streaming性能优化:Spark Streaming处理分布式拒绝服务器案例及性能优化
- Java基础———Java中的回调与事件
- JS 图片转base64编码实现及相关问题
- SIM卡管理
- bzoj 1031 [JSOI2007]字符加密Cipher
- C++第五次上机实验[项目一:数组分离]
- Python实现ssh登录