grep 命令问题
在使用grep的精确匹配命令时,比如 grep "aa<tab>" filename,里面的这个<tab>我怎么输不进去啊 !我是在虚拟机下安的LINUX 顶一下吧!呵呵 应该是#grep "aa\<tab\>" filename
吧! 有反斜杠的。 [quote]原帖由 [i]tracydundun[/i] 于 2008-4-12 23:13 发表 [url=http://linuxpk.linuxpk.com/redirect.php?goto=findpost&pid=46902&ptid=13759][img]http://linuxpk.linuxpk.com/images/common/back.gif[/img][/url]
在使用grep的精确匹配命令时,比如 grep "aa" filename,里面的这个我怎么输不进去啊 !我是在虚拟机下安的LINUX [/quote]
which one you want?
grep "aa " filename
or
grep "aa\<TAB\>" filename 如果查询aa后跟一个tab键, 使用
grep "aa\t" filename
应该可以吧! 明白了! 顶个 grep精确匹配好像是:
grep "aa\>" filename [quote]原帖由 [i]nlcj_linuxmine[/i] 于 2008-4-15 11:05 发表 [url=http://bbs.linuxpk.com/redirect.php?goto=findpost&pid=47180&ptid=13759][img]http://bbs.linuxpk.com/images/common/back.gif[/img][/url]
如果查询aa后跟一个tab键, 使用
grep "aa\t" filename
应该可以吧! [/quote]
I agree. 我也顶一个 呵呵 [quote]原帖由 [i]9命怪猫[/i] 于 2008-4-14 19:57 发表 [url=http://bbs.linuxpk.com/redirect.php?goto=findpost&pid=47123&ptid=13759][img]http://bbs.linuxpk.com/images/common/back.gif[/img][/url]
which one you want?
grep "aa " filename
or
grep "aa\" filename [/quote]
貌似不是中原人???????????? 顶一下!!!!!!
页:
[1]