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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

changing chars in a file from DCL

Reply to Message Icon

Name: aliyesami
Date: May 26, 2008 at 15:23:38 Pacific
OS: VMS 7.3-2
CPU/Ram: alpha server, 32gb
Product: 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.



Sponsored Link
Ads by Google

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

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.



0

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

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




0

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

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: changing chars in a file from DCL

How to Search a Keyword in a File www.computing.net/answers/openvms/how-to-search-a-keyword-in-a-file/441.html

Change Password in DCL www.computing.net/answers/openvms/change-password-in-dcl/552.html

to write system errors into a file www.computing.net/answers/openvms/to-write-system-errors-into-a-file/324.html