Re: Stupid Question: Striping Dos ^M From Texts

1997-06-08 Thread Benoit Goudreault-Emond
>Somewhere in the dank recesses of my mind, I recall >a utility that would strip the extra ^M's from a >text file copied to a unix box. Well, it seems that >Linux also considers these ^M's extranious, is there >such a standard utility or do I have to dig even >deeper to remember sed/awk/grep comma

Re: Stupid Question: Striping Dos ^M From Texts

1997-06-07 Thread Vadim Vygonets
On Thu, 5 Jun 1997, Curt Howland wrote: > Somewhere in the dank recesses of my mind, I recall a utility that > would strip the extra ^M's from a text file copied to a unix > box. Well, it seems that Linux also considers these ^M's extranious, > is there such a standard utility or do I have to dige

Re: Stupid Question: Striping Dos ^M From Texts

1997-06-06 Thread Scott K. Ellis
-BEGIN PGP SIGNED MESSAGE- On Thu, 5 Jun 1997, Curt Howland wrote: > Somewhere in the dank recesses of my mind, I recall > a utility that would strip the extra ^M's from a > text file copied to a unix box. Well, it seems that > Linux also considers these ^M's extranious, is there > such a

Re: Stupid Question: Striping Dos ^M From Texts

1997-06-06 Thread A. M. Varon
On Thu, 5 Jun 1997, Curt Howland wrote: > > Somewhere in the dank recesses of my mind, I recall > a utility that would strip the extra ^M's from a > text file copied to a unix box. Well, it seems that > Linux also considers these ^M's extranious, is there > such a standard utility or do I have to

Re: Stupid Question: Striping Dos ^M From Texts

1997-06-06 Thread Kevin Traas
Here's a sed script that I've used for years on my old SCO Unix box. I'm not actually positive it works on Linux because I haven't tried it, but sed is sed, right?... It adds ^M's if they're missing and deletes them if found. (i.e. one script that will do both conversions) sed -e ' s-^M--g t s+

Re: Stupid Question: Striping Dos ^M From Texts

1997-06-05 Thread Joey Hess
Dale Scheetz: > The seesat5 package (a satellite tracking program) provides a little > program called "cr" that will convert text files from DOS style carriage > returns to Unix ones and back. Seesat5 needs the facility to incorporate > DOS generated element files on the Linux file system without t

Re: Stupid Question: Striping Dos ^M From Texts

1997-06-05 Thread Jens B. Jorgensen
Curt Howland wrote: > > Somewhere in the dank recesses of my mind, I recall > a utility that would strip the extra ^M's from a > text file copied to a unix box. Well, it seems that > Linux also considers these ^M's extranious, is there > such a standard utility or do I have to dig even > deeper to

Re: Stupid Question: Striping Dos ^M From Texts

1997-06-05 Thread Cameron L. Spitzer
tr -d '\r' < dosfile > unixfile removes all ^Ms, even if they are not at the end of the line where MSDOS seems to put them. tr(1) is small and fast. perl -p -i.bak -e 's/\r$//;' dosfile renames the dosfile dosfile.bak and writes the corrected output in dosfile. The $ "anchors" the search

Re: Stupid Question: Striping Dos ^M From Texts

1997-06-05 Thread Dale Scheetz
On Thu, 5 Jun 1997, Curt Howland wrote: > > Somewhere in the dank recesses of my mind, I recall > a utility that would strip the extra ^M's from a > text file copied to a unix box. Well, it seems that > Linux also considers these ^M's extranious, is there > such a standard utility or do I have to

Re: Stupid Question: Striping Dos ^M From Texts

1997-06-05 Thread Oliver Elphick
In message <[EMAIL PROTECTED]>, writes: > >Somewhere in the dank recesses of my mind, I recall >a utility that would strip the extra ^M's from a >text file copied to a unix box. Well, it seems that >Linux also considers these ^M's extranious, is there >such a standard utility or do I ha

Re: Stupid Question: Striping Dos ^M From Texts

1997-06-05 Thread Alexandre Lebrun
install the 'recode' package and use it like this : recode ibmpc:latin1 YourTextFile Bye, Alexandre On Thu, 5 Jun 1997, Curt Howland wrote: > > Somewhere in the dank recesses of my mind, I recall > a utility that would strip the extra ^M's from a > text file copied to a unix box. Well, it seem