Reggie Monroe wrote:
> I have a job that does a global change (see below). This job has to make
> 6 passes before it completes and takes quite a while. Would anyone know
> of a faster way to make these global changes.
>
> !mpex
> editchg @.job.@mig, "10.6.120.210", "10.222.120.210"
> editchg @.job.@mig, "10.6.120.212", "10.222.120.212"
> editchg @.job.@mig, "10.6.121.125", "10.222.121.125"
> editchg @.job.@mig, "10.6.121.38", "10.222.121.38"
> editchg @.job.@mig, "10.6.121.68", "10.222.121.68"
> editchg @.job.@mig, "jedidmsfs", "10.222.121.68"
> exit
> !eoj
Another possibility is to place all the changes into a "use" file
and do editchg once.
editchg @.job.@mig, chgfile
Now depending on which editor editchg uses (Not familiar with mpex commands),
if EDITOR, I have placed several commands into a "use" file and ran editor
with stdin redirected
EDITOR < chgfile
oh -- just checked, EDITOR has a USE filename command. So redirection not
neccessary.
echo T filename >chgfile
echo C "10.6.120.210" to "10.222.120.210" in all >>chgfile
echo C "10.6.120.212" to "10.222.120.222" in all >>chgfile
...
echo k,y >>chgfile
EDITOR "use chgfile;e"
Keven
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|