in reply to Monitoring a firewall using ssh (was: Is this possible in Perl?)
Hope this helps. -malloc#!perl -i @ARGV = ("/etc/hosts"); while(<>){ s/OLDIP/NEWIP; # change the ip s/OLDHOSTNAME/NEWHOSTNAME; # change the hostname print; } # repeat a while loop like this for all of the network files.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Is this possible in Perl?
by Vynce (Friar) on May 30, 2001 at 01:07 UTC |