I'm not familiar with the magic that sed invokes, and I can't get this
to do anything.  outfile ends up the same as infile.  If it makes any
difference, the file I'm working on is from the weather bureau, and they
are apparently adhering to the old radioteletype standard of hitting the
return key twice and the line feed key once, because lines are delimited
with CR CR LF instead of just CR LF.

At any rate,
sed '{}' mlc.nmos > newfile
(mlc.nmos is the actual file name) produces 'newfile' that still contains
the CR CR LF sequences.

I have a Perl script now that will take care of the job, but I'd still
like to see a shell-oriented solution.

Richard Adams wrote:
> 
> On Wed, 12 Jul 2000,  Richard Adams wrote about,  Re: converting text files from dos:
> >
> > ./dos2unix
> > ssed '{}' infile >outfile
> 
> Oops, sorry;
> 
> sed '{}' infile >outfile
> 
> I can assure you i used cut and paste so i would not have typo's, hummm.
> 
> --
> Regards Richard
> [EMAIL PROTECTED]
> http://people.zeelandnet.nl/pa3gcu/
> 
-- 
Regards,
Jim Reimer - WA5RRH
[EMAIL PROTECTED]
http://www.webzone.net/jdreimer

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to