[linux-l] dos2unix

Jan-Benedict Glaw jbglaw at lug-owl.de
So Mär 11 22:19:31 CET 2007


On Sun, 2007-03-11 20:24:41 +0100, Ralph Angenendt <ralph at strg-alt-entf.org> wrote:
> Jan-Benedict Glaw wrote:
> > > dos2unix:
> > > 
> > >     sed 's/\r$//' < dos.txt > unix.txt
> > 
> > Diese würde ich nehmen. Löscht nur \r am Zeilenende.
> 
> Macht halt nur nicht das gewünschte, da man von \r\n$ nach \n$ kommen
> möchte :)

Weil ... ?

'$' == "Zeilenende", und das ist unter Linux'schem Userland (und unter
sinnvoll installiertem Cygwin) \n.

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw at lug-owl.de              +49-172-7608481
Signature of:  The course of history shows that as a government grows, liberty
the second  : decreases."  (Thomas Jefferson)
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 189 bytes
Beschreibung: Digital signature
URL         : <https://mlists.in-berlin.de/pipermail/linux-l-mlists.in-berlin.de/attachments/20070311/d06d14c8/attachment.sig>


Mehr Informationen über die Mailingliste linux-l