Zeilenumbruch in einer Bashausgabe

Frank Rosendahl frank at rosendahl.dyndns.org
Fri Apr 6 21:43:55 UTC 2007


Am Freitag April 6 2007 schrieb Frank Büttner:
> Hallo,
> ich habe folgendes Problem in einer simplen bash Datei wird eine Email
> generiert. Nur soll aber mitten im Text ein Zeilenumbruch stattfinden.
> Bsp:
> text="hallo Haus"
> echo $text | mail root -s "test"
> zwischen hallo und Haus soll in der Mail der Umbruch sein.
> \r\n funktioniert leider nicht, da die Zeichen dargestellt werden.
> Hat jemand eine Idee?

Probiers mal mit echo -e $text

\r\n müssen interpretiert werden, dazu das -e!

-- 
Gruß

Frank Rosendahl

Fingerprint: 7506 6D0F 2C79 09A6 A8CF E51D BEF0 0279 A989 8450
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-de-list/attachments/20070406/8a8cb389/attachment.sig>


More information about the Fedora-de-list mailing list