Re: lynx and google.com
On Thu, May 06, 2004 at 11:39:42AM -0700, William Ballard wrote:
> On Thu, May 06, 2004 at 02:14:56PM -0400, David P James wrote:
> > William Ballard wrote:
> > > -e 's/href=\//href=http:\/\/google.com\//g' \
> > ^
> > Does this line actually work? To me it looks like you're missing an
> > escape before the second '/' before the second 'href'.
>
> Yes, it actually works. The unescaped / are delimiters for the s///.
> It's trashy write-only code -- but it works.
FWIW, the next time you can write this instead:
-e 's,href=/,href=http://google.com/,g'
... or pretty much any other sensible delimiter of your choice.
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: