* Carsten Ungewitter schrieb am 18.Nov.2002:
Ich suche ein Script - das mir aus einem Text die Passagen heraussucht, auf die ein oder mehrere Suchwörter passen. Die Länge des Textes (Kontext) davor und dahinter sollte als Argument mit übergeben werden.
Das macht schon grep. Siehe Options -A, -B und -C
Gut wäre, wenn als Argument mit übergeben werden könnte, in welchem Abstand die beiden Suchwörter im TExt stehen dürfen.
Wie meinen?
Und ganz toll wäre, wenn das Script auch noch ganze Sätze ausspucken würde - also von "." bis ".".
Hmm. Bernd -- Bitte die Etikette beachten: http://www.suse-etikette.de.vu/etikette.html Bitte Realnamen angeben, kein Vollquoting, kein Html, PGP oder Visitenkarten benutzen. Signatur mit "-- " abtrennen, bei Antworten "Re: " voranstellen, sonst nichts. |Zufallssignatur 4