in reply to Re: Solaris - change hostname / ip / default-router-ip script
in thread Solaris - change hostname / ip / default-router-ip script
I was being lazy not to check the arguments because i am the only one use this. well. no excuse.
To the second suggestion(anchor one) you mentioned, i think a \b will do it. anchor requires the line start with that ip or hostname
>>better still if you don't put the one-liner perl script on the command line at all.
you put the regex in a seperate file then system calls it at once. that looks no much difference than directly calling it in the same perl script though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Solaris - change hostname / ip / default-router-ip script
by graff (Chancellor) on Feb 21, 2005 at 15:07 UTC |