Re: Show all files with empty filename
From: Joseph Huber (huber_at_NOBODY-mppmu.mpg.de)
Date: 07/13/05
- Next message: Keith Parris: "Re: MSCP Server on Multi-Site Cluster"
- Previous message: Keith Parris: "Re: Response issues on GS1280, VMS 7.3-2"
- In reply to: Rudolf Wingert: "Show all files with empty filename"
- Next in thread: Grealy, Patrick J: "RE: Show all files with empty filename"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Jul 2005 17:12:00 +0200
In article <000001c5877b$806afeb0$994614ac@wat153>, "Rudolf Wingert" <win@fom.fgan.de> writes:
> I would like to see all files without an filename within OpenVMS
> 7.3[-1]. With DIR it is impossible. If I use $DIR [*...].*, I will see
> all files of the disk. Also is there a strange behavior if you delete
> files (e.g. $DEL hugo.*;*) and there is no filetyp (error in
> filenamespecification). Is this a bug or a feature?
Method 1: use GNV/bash
bash$ ls .*
Method 2: use a DCL command-file like the following:
$! <title> directory of files with empty name (.typ) </title>
$ if p1.eqs."" then p1=".*"
$ last = ""
$ loop:
$ file=f$search(p1)
$ if file.eqs."" then exit
$ if file.eqs.last then exit
$ last = file
$ fn = f$parse(file,,,"NAME")
$ if fn.eqs."" then write sys$output file
$ goto loop
Then @thisfile [...].*
The second question: I can't see while delete for a file with no
file-type ("*.") results in an error. Maybe Your DEL command
does something wrong ?
It simply works:
Directory DISK$HUBER:[HUBER]
test.;1
Total of 1 file.
delete test.;
sh sym $STATUS
$STATUS == "%X10000001"
-- Joseph Huber, Muenchen http://www.huber-joseph.de/
- Next message: Keith Parris: "Re: MSCP Server on Multi-Site Cluster"
- Previous message: Keith Parris: "Re: Response issues on GS1280, VMS 7.3-2"
- In reply to: Rudolf Wingert: "Show all files with empty filename"
- Next in thread: Grealy, Patrick J: "RE: Show all files with empty filename"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|