> > I want to remove CRs from text files so what I did is this:
> >
> > cat filename | tr -d '\r' > filename
> >

It's easier with 'tr' but you can also use vi.

# vi text.txt

:1,$s/^M//g

where ^M means that you need to hit Ctrl-V.




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

Reply via email to