newbie: use <CR> in RE?
end at endif.cjb.net
Sat Nov 22 07:49:58 PST 2003
On Sat, 22 Nov 2003 10:44:30 -0500, Scott W <wegster at mindcore.net> wrote:
> Jerry McAllister wrote:
> >So why not just use tr? \t should get tabs, as you noted \r gets
> >CRs I don't know linefeed off hand, but wouldn't be surprised if it was
> >\l. It follows the usual conventions.
> >There are more things besides -d that you can do with tr also.
> You can do what you want in vi or sed, you just need to escape the first
> escape character, eg
> sed -i s/\\r//g
> Note that with your tr string, you're already 'wrapping' the backslash-r
> in double quotes, thereby avoiding shell expansion..
> You can also use the dos2unix command, although I don't see it in
Robin Schoonover (aka End)
# The only cure for insomnia is to get more sleep.
More information about the freebsd-questions