>
> ... Much deleted ...
>
> Ack. Looks like you're right, and I agree with you. If "[2addr]l" can output
> '\r', "[2addr]s/regex/repl/flags" ought to understand "\r". I have to wonder
> how many times I may have been bitten by this mis-feature.  ;-,
> 
> This'll work though:
>     sed -e 's/[[:cntrl:]]$//g'
> 
> > > I like the tr(1) conversion too, but I always seem to think in terms of
> > > sed(1) and awk(1).
> 
> And if that sed(1) solution is still "too loose", the tr(1) solution reduces
> "[[:cntrl:]]" to just the CR character.
> 

Just to be clear on this issue;  you want to be left with the LF characters
and get rid of the CR characters not the other way around.  I am not a sed
person, but your statement is backwards even if your sed works.

////jerry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to