T
tom*de
Jungspund
AIX - grep -p (paragraph/blockweise) mit sed in Linux/SuSE nachbilden?
Hallo, ich vermisse den Parameter -p beim grep, den ich vom AIX-grep kenne.
Hat jemand eine Idee, wie man auch unter SuSU nachbilden kann um als Ergebnis nicht nur die Zeile, sondern den Block angezeigt zu bekommen?
Hallo, ich vermisse den Parameter -p beim grep, den ich vom AIX-grep kenne.
Code:
grep Command
...
Flags
...
-p[Separator]
Displays the entire paragraph containing matched lines. Paragraphs are delimited by paragraph separators, as specified by the Separator parameter, which are
patterns in the same form as the search pattern. Lines containing the paragraph separators are used only as separators; they are never included in the output. The
default paragraph separator is a blank line.
...
Hat jemand eine Idee, wie man auch unter SuSU nachbilden kann um als Ergebnis nicht nur die Zeile, sondern den Block angezeigt zu bekommen?
Zuletzt bearbeitet: