[ILUG] find & replace in multiple files

Niall Donegan niall at moybella.net
Sun Sep 3 23:26:40 IST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aine Douglas wrote:
> However... tonight I've hit a problem because the search string is
> part of a URL and contains a /
> and if i wrap my search string with quotes, perl barfs at me...

Escape the / by putting a \ before it, for example
s/http\/\/whatever/http\/\/whateverelse/

- --
Niall Donegan
niall\at\moybella\dot\net
Public-Key: http://moybella.net/~niall/public.gpg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE+1agtYqd1KeuQA8RAtAAAJ40fZa0qQyX2AianQEbnzCslD3ELgCffAWu
LnrzxTyzIO6M7s6Geuk8am8=
=mz0E
-----END PGP SIGNATURE-----



More information about the ILUG mailing list