HP OpenVMS Systemsask the wizard |
The Question is: How can I execute command like "global replace" on many text file with EVE ? I have already store the command in the file test.eve NOMSRC> type test.eve global replace ! * global replace - _ exit And I try to call EVE with the qualifier /COMMAND=test.eve but EVE start to edit the file instead of changing the characters. NOMSRC> eve test.txt /command=test.eve Henry Cassin-Delaurihre Til. : 01 34 80 78 25; Fax : 01 34 80 82 11 E-Mail : henry.cassin-delauriere@aldautomotive.com www.ald-automotive.fr Location longue durie, gestion et financement de vihicules The Answer is :
/COMMAND is used for TPU code to be executed prior to editing. Your
script contains EVE code, so you should use /INIT to execute it.
For example:
$ EDIT/TPU TEST.TXT/INITIALIZATION=TEST.EVE
You may also want to add /NODISPLAY:
$ eve test.dat/init=test.eve/nodisplay
4 lines read from file USER$WIZ:[WIZARD]TEST.DAT;2
Executing commands in initialization file: USER$WIZ:[WIZARD]TEST.EVE;1
4 lines written to file USER$WIZ:[WIZARD]TEST.DAT;3
$
|