Now we're getting there.  sed 's/.$//' only picks out the last CR of the
CR CR LF sequence, so would have to run it twice to get from CR CR LF to 
just LF.  But 's/^M^M$//' or 's/..$//' seems to do the trick.

Thanks.

> 
> 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.
> 

-jdr-

-
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