Erwthsh gia sed

Alejandros Diamandidis adia at egnatia.ee.auth.gr
Thu Mar 4 17:58:08 EET 1999


>Dokimasa kati san
>sed -e "s/snipit/snip^Jit/" <source >dest
>alla den doulepse.

Apo th manpage tou sed:

   A line can be split by substituting a newline character into it.
   To specify a newline character in the replacement string, precede
   it with a backslash.

Opote,

sed -e 's/snipit/snip\
it/' <source >dest

To backslash an to thes mesa se "" prepei na diplasiastei:

sed -e "s/snipit/snip\\
it/" <source >dest

-- 
Alejandros Diamandidis * adia at egnatia.ee.auth.gr
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list