UUGRN

Re: Grep

From
Michael Lestinsky <michael.lestinsky@...>
Date
Am 30.11.'01 schrieb Mathias Waack:
> Hi all,
>
> ich habe manchmal das Problem, dass ich nach einem String in einer Vielzahl
> Dateien greppe, mich aber nicht nur die "passende" Zeile sondern auch Zeilen
> davor oder dahinter interessieren. Wie kann man das mehr oder minder elegant
> loesen?

FreeBSD-grep:

-A NUM, --after-context=NUM
Print NUM lines of trailing context after matching
lines.

-B NUM, --before-context=NUM
Print NUM lines of leading context before matching
lines.

Bye
Michael

Thread

In reply to: Grep Mathias Waack <mathias@...>

Follow-ups:

  • Re: Grep Christian Weisgerber <naddy@...>