Missing utility pkg
gheskett at wdtv.com
Fri Nov 9 16:39:36 UTC 2012
On Friday 09 November 2012 10:53:01 Joaquin Nadal Dura did opine:
> On 11/08/2012 12:25 PM, Joaquin Nadal Dura wrote:
> > On 11/08/2012 11:54 AM, Gene Heskett wrote:
> >> Greetings folks;
> >> I can't believe we don't have the d2u, u2d package or something
> >> similarly enough named that a synaptic search can find it.
> >> Have I gone blind in my dotage, or is it truly missing?
> > Hi,
> > The package name is dos2unix
> Excuse me. On Lucid yo have the package tofrodos.
What, there's a copyright fight over the dos2unix name? Sheesh.
I read the description, but only after I installed it, it did not over-ride
what I wrote, and from the description it would not do what I need to have
done anyway. I don't want to strip a file that has crlf's in it, or put
then back, I simply needed to convert the cr's to lf's and vice versa.
What I wrote also functions as an mv.
cat $1|tr '\015' '\012' >$2
But it leaves the $1 file behind, so the app can check $2, and if
successful, rm -f $1, effectively doing an mv the hard way. The u2d
interchanges the two char strings.
For the size files involved, assembly output listings from a 28 year old
computer, headed for a $100 laser B&W printer for hard copy of the assembly
coding I do on that machine. With some clever scripts, this linux box
serves as that machines printer since printers it can use have been out of
the market even for expendables for 15 years. I have a fully functional
xerox 1650ro printer, the fastest (40 cps) daisy wheel ever sold. But the
first hammer strike shatters its now ancient film ribbons like whacking an
automobiles herculite window glass with a deer rifle bullet. Positively
I also, since the maintainer of that os's repo has backed away, leaving
some things broken so it was unbootable, have cloned that repo and have
made it build to bootable again. However, turning on the listing output,
doing a make clean;make dskclean;make dsk in the root of the repo would
probably use around 3 reams of paper. It takes about 8 or 9 minutes for
the listing to fly by in a terminal screen window. That would be a heck of
a lot of paper.
But thats off topic for this list, just background as to why I need it.
That machine uses a cr as both a return and a line feed, whereas these *nix
boxes use an lf for both functions. So a direct translate is all I need
and I have it now. No working resolution from ubuntu, but thread closed
Thanks to all who replied, it was helpful in clarifying what was needed in
my own mind. Sometimes us old dogs forget what was std practice 20 years
> Best regards,
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
Why he stays in the bottle.
More information about the ubuntu-users