Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 2003 02:44:47 -0500
From:      parv <parv@pair.com>
To:        Rob Ellis <rob@web.ca>, freebsd-questions@freebsd.org
Subject:   Re: Remove ^M characters from xhtml file
Message-ID:  <20031203074447.GA3923@moo.holy.cow>
In-Reply-To: <20031203023235.GB88571@web.ca>
References:  <20031201031602.GA80581@bsdjunky.homeunix.org> <20031202225359.GA1125@moo.holy.cow> <20031203023235.GB88571@web.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <20031203023235.GB88571@web.ca>,
wrote Rob Ellis thusly...
>
> On Tue, Dec 02, 2003 at 05:53:59PM -0500, parv wrote:
> > 
> > It pains me not to see even a mention of sed ...  To rectify the
> > situation...
> > 
> >   sed -e 's/^M$//' old > new && mv -f new old
> > 
> 
> Freebsd's sed has -i
> 
>   sed -ie 's/^M$//' old

I forgot about that; thanks for the reminder.


  - Parv

-- 



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