On Fri, February 8, 2008 4:03 pm, Carl Lowenstein 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. >
I don't think you read me very carefully. Either that or too much history got trimmed. I already know - that I could write something myself in Tcl/perl/whatever, but using what I now call the "Wolfe Principle" (that I tend to write for myself fat too quickly and should spend more time researching what's already available), I want to use something tried and true - of the _many_ implementations of this, the one I tumbled to most quickly, already on most Fedora installs, was busybox, a compendium of lil' utilities in one burrito My reasoning was, busybox's syntax has flags, and rather than link unix2dos to busybox and have to remember the -d and -u flags, and have the absurdity that unix2dos -u would actually mean dos2unix, I decided that aliasing is better: alias unix2dos='busybox unix2dos -d ' Clearer? -- Lan Barnes SCM Analyst Linux Guy Tcl/Tk Enthusiast Biodiesel Brewer -- KPLUG-List@kernel-panic.org http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list