Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2003 08:49:55 -0700
From:      Robin Schoonover <end@endif.cjb.net>
To:        Scott W <wegster@mindcore.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: newbie: use <CR> in RE?
Message-ID:  <20031122084955.00d019ce.end@endif.cjb.net>
In-Reply-To: <3FBF845E.7040905@mindcore.net>
References:  <200311221449.hAMEnNT24343@clunix.cl.msu.edu> <3FBF845E.7040905@mindcore.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 22 Nov 2003 10:44:30 -0500, Scott W <wegster@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
> vi:
> :/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
> ports...
> 

converters/unix2dos

-- 
Robin Schoonover (aka End)
#
# The only cure for insomnia is to get more sleep.
#



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031122084955.00d019ce.end>