$ man grep
NAME
grep, egrep, fgrep, rgrep - print lines matching a pattern
....
-P, --perl-regexp
Interpret PATTERN as a Perl regular expression (PCRE, see
below). This is highly experimental and grep -P may warn of
unimplemented features.
那你man grep看一下支持-i参数不 作者: MeRcy_PM 时间: 2014-08-14 17:27
-i, --ignore-case
Ignore case distinctions in both the PATTERN and the input
files. (-i is specified by POSIX.)
我这有-i,但是貌似把整个正则表达式都忽略大小写了,所以变成了\w吧?
Copyright (C) 1988, 1992-2002, 2004, 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.