On Dec 04, at 10:20 AM, Jerry McAllister wrote:
> 
> > 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.

No, I meant what I wrote, though you gave me pause to double-check. The
"[[:cntrl:]]" and reference to the CR character ("\r" = carriage-return)
are what's being stripped. I pro'lly should have finished the sentence
with "... for stripping." or somesuch.

> ////jerry

Dave

-- 
  ______________________                         ______________________
  \__________________   \    D. J. HAWKEY JR.   /   __________________/
     \________________/\     [EMAIL PROTECTED]    /\________________/
                      http://www.visi.com/~hawkeyd/


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

Reply via email to