2008年12月16日星期二

grep -- Selecting the non-matching lines

-v, --invert-match
Invert the sense of matching, to select non-matching lines. (-v is specified by POSIX.)

再来个很有用的选项, 只输出匹配部分:
-o, --only-matching
Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.

没有评论: