HP3000-L Archives

January 2009, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Keven Miller (rtt)" <[log in to unmask]>
Reply To:
Keven Miller (rtt)
Date:
Thu, 29 Jan 2009 06:25:09 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
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 *

ATOM RSS1 RSS2