- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Delete files named like *.*.*
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2007 12:52 PM
11-13-2007 12:52 PM
We got some files which have more than one dot in the filenames, like "*^.*.*". How can we delete this kind of files?
Our systerm-"OpenVMS v8.3"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2007 01:32 PM
11-13-2007 01:32 PM
SolutionDumb answer - with the DELETE command!
Seriously, you need to construct a filespec for DELETE which matches your files. With extra dots in the filename, you will need to escape those that aren't part of the RMS syntax using the circumflex character (as you have done in your question).
The tricky part will be working out which dot(s) are characters the NAME field of the filespec, which are characters in the TYPE field and which ONE is the delimiter between NAME and TYPE. Escape all the dots except the one which is syntactic.
You'll also need to set your PARSE_STYLE to EXTENDED (SET PROCESS/PARSE=EXTEND) to enable extended filename parsing.
For example:
$ SET PROCESS/CASE=SENSITIVE/PARSE=EXTENDED
$ DELETE MY^.file.Type^.with^.dots;*
In this case the syntactic dot is between the words "file" and "Type".
First few attempts, I'd recommend using DELETE/CONFIRM so you can check the filenames DELETE has matched before they get deleted.
Note that the wild card "*" will still match substrings that include dots and other special characters, so without setting parse style or case sensitivity, the file above could have been deleted with:
$ DELETE M*.T*;*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2007 03:33 PM
11-13-2007 03:33 PM
Re: Delete files named like *.*.*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2007 08:39 PM
11-13-2007 08:39 PM
Re: Delete files named like *.*.*
If you need procedures that DELETE several/many of those files (as your * wildcrd suggests) you can write a little (eg DCL) program, which first does a scan for matching files (DCL: F$SEARCH(filespecs)
The answers you get from repetitive calls, ARE the correct syntax; now feed that into DELETE.
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2007 11:57 PM
11-14-2007 11:57 PM
Re: Delete files named like *.*.*
Yes, that's a good idea. Thanks!