On Wed, 12 Jul 2000,  Jim Reimer wrote about,  Re: converting text files from dos:
> 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.

Huum i see, i did not try it, i got it from another list, however one which
does work is;

sed 's/.$//'

I get my examples from;

http://www.cornerstonemag.com/sed/sed1line.txt

It is one hell of a helpfull page when one writes scripts.

I took a look at your web page, i understand why you want a script.

73's.

> Regards,
> Jim Reimer - WA5RRH
> [EMAIL PROTECTED]
> http://www.webzone.net/jdreimer

-- 
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/


-
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