日历

二月
28293031123
45678910
11121314151617
18192021222324
252627282912

分类

正则表达式
shell 基础

grep

奔斗 posted @ 2013年12月25日 15:56 in linux , 843 阅读

The useful options of grep,egrep,fgrep

-i, Ignore case distinctions in both the patten and files

-v Invert the sense of matching,to selsect non-matching lines

-c Suppress normal output;instead print a count of matching line

-n Prefix each line of output with the 1-based line number

Avatar_small
奔斗 说:
2013年12月25日 21:27

grep 不支持‘?’重复、替换和组
egrep 不支持向后引用、保存


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter