Computing.Net > Forums > OpenVMS > changing chars in a file from DCL

changing chars in a file from DCL

Reply to Message Icon

Original Message
Name: aliyesami
Date: May 26, 2008 at 15:23:38 Pacific
Subject: changing chars in a file from DCL
OS: VMS 7.3-2
CPU/Ram: alpha server, 32gb
Model/Manufacturer: alpha server
Comment:

I want to replace on DCL level some string patterns in a file ,how can I do it? In unix from example there is a command utily SED which can be used to replace strings in a file.


Report Offensive Message For Removal


Response Number 1
Name: Joseph.Huber
Date: May 27, 2008 at 03:16:44 Pacific
Reply: (edit)

SED is available for VMS as well. Best is to get the freeware GNV package.
Follow the freeware path at the VMS home page
to
http://h71000.www7.hp.com/opensourc...

Also PERL is availabe for VMS, follow the above opensource or freeware links at HP.
There a zillions of find-replace scripts on the the various perl archives.

You can as well use VMS editors like TPU/EVE, see examples in my utilities directory:
http://wwwvms.mppmu.mpg.de/~huber/u...

And interactive, using the EDT editor:
edit/edt/comm=sys$input tmp.tmp
s/old/new/wh
exit

changes all strings "old" to "new" in file tmp.tmp.



Report Offensive Follow Up For Removal

Response Number 2
Name: Joseph.Huber
Date: May 27, 2008 at 13:09:34 Pacific
Reply: (edit)

In addition, without installing anything else to basic VMS, see my GSR.COm (Global Search and Replace):
http://wwwvms.mppmu.mpg.de/util_roo...




Report Offensive Follow Up For Removal

Response Number 3
Name: Joseph.Huber
Date: May 27, 2008 at 13:12:23 Pacific
Reply: (edit)

Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: changing chars in a file from DCL

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge