Thread Shellprogramm für Ersetzungen (9 answers)
Opened by format_c at 2004-04-10 17:48

tomlong
 2004-04-10 18:10
#94471 #94471
User since
2003-08-04
93 Artikel
BenutzerIn
[default_avatar]
[quote=format_c,10.04.2004, 15:48]Ich glaube mit einem von diesem Programmen kann man doch auf der Kommandozeile Ersetzungen in einer Datei machen ähnlich wie s/// .[/quote]
jupp also für sowas würde ich sed benutzen ... denn ...

Quote
Sed is a stream editor. A stream editor is used to per­
form basic text transformations on an input stream (a file
or input from a pipeline). While in some ways similar to
an editor which permits scripted edits (such as ed), sed
works by making only one pass over the input(s), and is
consequently more efficient. But it is sed's ability to
filter text in a pipeline which particularly distinguishes
it from other types of editors.


sprich du kannst nach sed pipen und den output bearbeiten ... in Zusammenarbeit mit cat oder ähnlichen (oder auch ganz anderen) tools sehr mächtig :)

zu awk kann ich dir pers. nich viel sagen ... man awk sollte aber weiterhelfen

Gruß, Tom
Live long and prosper!
42;

View full thread Shellprogramm für Ersetzungen