Duc M Do wrote:
> 
> At 10:25 AM 4/3/00 -0500, Wilson, Keith wrote:
> 
> >This script using d_edit50 worked for us.
> >Run it from the directory that the trends are in. Hope it helps.
> >
> >
> >dir=`pwd`
> >d_ed=/usr/fox/wp/bin/tools/d_edit50
> >DIR_LIST=`ls -1`
> >for i in $DIR_LIST
> >        do $d_ed -g/Root/ -h/hisb8q/his08q/ $i
> >#                           /old  /new
> >done
> 
> <...snip...>
> 
> Hi Keith (and Kevin),
> 
> Which version of software are you using? I'm on v4.3 (Solaris) and it's
> been my understanding that d_edit cannot modify the historian name. And
> sure enough, I cannot replicate what you recommended. I keep getting
> the "++ Wrong command line option" error no matter what I tried.
> 
> We encountered this same problem (changing historian) a couple of years
> ago and had to use vedit to fix it. That's why I recommend it.
> 
> (Note also that this vedit is not the same as the variation of vi of
> the same name on the SOlaris platform.)
> 
> Duc

Here is another good trick if you have perl installed. (Another good
reason to use it)

perl -p -i -e "s/old_hist_name/new_hist_name/g;" file ( or * if you want
to do a whole directory )

This command does an 'in place' edit of the display file and does a text
substitution of the historian name. We have done this many times to fix
historian names. Perl will happily edit binary files.

-- 
Darryl Bond
NRG Gladstone Operating Services Pty Ltd ( Gladstone Power Station )
[email: [EMAIL PROTECTED]] [voice: (07) 49 765756] [fax: (07) 49
765100]
snail: PO Box 5046 Gladstone 4680 Queensland , Australia

-----------------------------------------------------------------------
This list is neither sponsored nor endorsed by the Foxboro Company. All 
postings from this list are the work of list subscribers and no warranty 
is made or implied as to the accuracy of any information disseminated 
through this medium. By subscribing to this list you agree to hold the 
list sponsor(s) blameless for any and all mishaps which might occur due to 
your application of information received from this mailing list.

To be removed from this list, send mail to 
[EMAIL PROTECTED] 
with "unsubscribe foxboro" in the Subject. Or, send any mail to
[EMAIL PROTECTED]

Reply via email to