migrating server ips

Neil Watson tlug-neil-8agRmHhQ+n2CxnSzwYWP7Q at public.gmane.org
Mon Mar 9 22:58:40 UTC 2009


On Mon, Mar 09, 2009 at 06:22:09PM -0400, Teddy Mills wrote:
> ipr /etc -R 111.222.333 777.888.999
>
> recursivley replace this ip with that one starting at /etc
> I am sure this can easily be done.

I use a find/perl command:
find /path -name "*.*" -exec \
perl -pi -e 's///g' {} \;

You'll want to backup your files just in case.

-- 
Neil Watson
UNIX Consultant
http://watson-wilson.ca
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list