On Fri, 2011-04-01 at 04:24 -0500, Rob Landley wrote:

> If you haven't got dos2unix lying around, you can always do:
> 
>   sed -i $(echo -e 's/\015$//') filename
> 
> Which is vaguely disgusting but "works for me".  (This comes up a lot
> saving entries out of my mbox to apply inline patches from linux-kernel.)

A simpler solution, untested but should work. I don't see the reason to
deal with all that pipe redirection if its not needed.

sed -i 's/\r$//' filename

-- 
Joe Ciccone

_______________________________________________
Clfs-support mailing list
Clfs-support@lists.cross-lfs.org
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org

Reply via email to