Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Dec 2006 22:30:58 -0600
From:      Josh Paetzel <josh@tcbug.org>
To:        freebsd-questions@freebsd.org
Cc:        Jack Stone <antennex@hotmail.com>
Subject:   Re: Search & Replace Issue
Message-ID:  <200612232230.58352.josh@tcbug.org>
In-Reply-To: <BAY125-F30049BC3F42C8F2E17BA61CCC30@phx.gbl>
References:  <BAY125-F30049BC3F42C8F2E17BA61CCC30@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 23 December 2006 21:29, Jack Stone wrote:
> Appreciate a tip on how to search & replace  hundreds of *.htm 
files:
> >From this:
>
> <li><a href="http://www.domain.com/tales/wouf.html
> To this:
> <li><a href="tales/wouf.html
>
> In other words, I just want the relative path and remove all the
> extra: http://www.domain.htm/  portions of the lines.
>
> Large thanks in advance for help.
>
> Happy Holidays!
> Jack
>

perl -p0777i -e 's/http:\/\/www.domain.com\///g' *.htm

-- 
Thanks,

Josh Paetzel



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