Package: grep
Version: 2.5.4-4
Severity: wishlist
File: /usr/share/man/man1/grep.1.gz
X-debbugs-cc:
bug-grep@...
On the man page at:
Context Line Control
**Please somehow mention at this place on the man page that Context will include
blank lines in the fashion below, that one never expected.... mention
the algorithm used. Thanks. Also mention how to just get a certain
number of context lines, with no introspection about what the content
of those lines are.**
-A NUM, --after-context=NUM
Print NUM lines of trailing context after matching lines. Places a line containing a group separator (--)
between contiguous groups of matches. With the -o or --only-matching option, this has no effect and a
warning is given.
$ w3m -dump
http://abj.jidanni.org/|LC_ALL=C grep -A 0 Search
Search
[Go] [Search]
$ w3m -dump
http://abj.jidanni.org/|LC_ALL=C grep -A 1 Search
Search
[Go] [Search]
Toolbox
$ w3m -dump
http://abj.jidanni.org/|LC_ALL=C grep -A 2 Search
Search
[Go] [Search]
Toolbox
$ w3m -dump
http://abj.jidanni.org/|LC_ALL=C grep -A 3 Search
Search
[Go] [Search]
Toolbox
• What links here