Here's a few different ways to do it, my favourite being the awk one. http://www.vasudevaservice.com/documentation/how-to/converting_dos_and_unix_text_files
""" To use awk to convert a DOS file to Unix, at the Unix prompt, enter awk '{ sub("\r$", ""); print }' dosfile.txt > unixfile.txt To convert a Unix file to DOS using awk, at the command line, enter awk 'sub("$", "\r")' unixfile.txt > dosfile.txt """ On Feb 8, 2008 7:03 PM, Carl Lowenstein <[EMAIL PROTECTED]> wrote: > On Feb 8, 2008 2:30 PM, Lan Barnes <[EMAIL PROTECTED]> wrote: > > > > > > On Fri, February 8, 2008 2:18 pm, Lan Barnes wrote: > > > > FWIW, I've decided that aliasing in /etc/bashrc is probably as viable and > > possibly a better solution than links, as switches appear to be used to > > show direction rather than argv0. > > You lost me there. Better decision for doing what? > > unix2dos is at least as old as SunOS of mid 1980's vintage. > > Meanwhile, how could you have missed <http://sourceforge.net/projects/u2d/>, > Not that it is well documented, but at least it has the right name. > And if you ever want to read GPL3 in Italian, it is right there. > > On the other hand, a few minutes of trying it and I don't think it works. > > dos2unix can be a one-line tr(1) script. > unix2dos can be a one-line sed(1) script. > > Either of them could be done inside vim. > > In very early KPLUG days I posted a shell script which I believe was > named "cr+-". It looked at the input text and changed it to the other > mode. Today I can't find it. > > carl > -- > carl lowenstein marine physical lab u.c. san diego > [EMAIL PROTECTED] > > > > -- > KPLUG-List@kernel-panic.org > http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list > -- Nicholas Wheeler Systems Administrator Development InfoStructure -- KPLUG-List@kernel-panic.org http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list