grep 和 egrep fgrep
来源:互联网 发布:淘宝店铺页面布局 编辑:程序博客网 时间:2024/04/29 07:23
才知道grep 的来历,g/RE/p,全局查找正则表达式并打印结果行。grep 命令的第二个参数就是用来指定匹配模式,所以正则表达式不用斜杠括起来。
egrep 不能使用 / ( / ) 和 / { / },但是增加了更多元字符,e.g.“+”表示匹配一个或多个前一个字符;a|b匹配a或b,当然a和b可以是字符串,但需要用引号括起来,以免引起“|”和通道的混淆。
另外()可以将字符串括起来。用于表示字符组。
fgrep则没有元字符与普通字符的区别,e.g. fgrep '[A-Z]***[0-9]' aa.txt,表示查找含[A-Z]***[0-9]的行。
- grep 和 egrep fgrep
- grep、fgrep 和 egrep 命令
- grep,egrep和fgrep的区别
- grep,egrep和fgrep的区别
- grep,egrep和fgrep的区别
- grep,egrep和fgrep的区别
- grep , egrep ,fgrep
- grep、egrep、fgrep命令
- grep,fgrep,egrep
- grep、egrep、fgrep命令
- grep、egrep、fgrep命令
- grep、fgrep、egrep区别
- grep、egrep、fgrep
- 6. redhat grep、egrep、fgrep
- shell编程grep/egrep/fgrep
- linux中的grep|egrep|fgrep
- linux里grep和egrep,fgrep的区别
- linux里grep和egrep,fgrep的区别
- 网卡不能被自动激活
- 数组和指针
- C#的四种排序算法
- 学UNIX要有点压力和追求
- 龙芯软件开发(18)-- 乾坤大挪移,从ROM到RAM
- grep 和 egrep fgrep
- Oracle不得不知道的问题
- 爱国==野蛮?
- 我的CSDN
- 惭愧
- test
- BEA WebLogic Server8.1 JMS入门
- 通信词典
- 正则表达式【转载】