[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep -C bogus
From: |
Dan Jacobson |
Subject: |
grep -C bogus |
Date: |
22 Nov 2001 04:48:08 +0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
$ man grep
-B NUM, --before-context=NUM
Print NUM lines of leading context before matching
lines.
-C [NUM], -NUM, --context[=NUM]
Print NUM lines (default 2) of output context.
$ seq 1 10|sed 5s/$/bbbb/|grep -B 1 b
4
5bbbb
$ seq 1 10|sed 5s/$/bbbb/|grep -C 1 b
grep: b: No such file or directory
$ grep --version
grep (GNU grep) 2.4.2
--
http://www.geocities.com/jidanni/ Tel+886-4-25854780
- grep -C bogus,
Dan Jacobson <=