VMS Command: Find

What is the command for finding a file (ministry_census.prg) in VMS; (where you don't know which directory the file is under)?  and then, I need to view (cat in AIX) the file.  
JohnLucaniaAsked:
Who is Participating?
 
catoaguilarCommented:
to find the file do a root dir search like this

dir dka0:[000000...]ministry_census.prg

(assuming your disk is dka0:, it can be as well dka100:, dka200 or some other name. You can chech disk name using:

show device d

once you have the name and path, e.g.   dka0:[userfiles.census.data]ministry_census.prg (equivalence in windows world would be C:\userfiles\census\data\ministry_census.prg)

you can go to the directory using:

set default dka0:[userfiles.census.data]

and list the file with

type ministry_census.org
0
 
Sam PanwarSr. Server AdministratorCommented:
find . -name '*.c' -print

use

  dir [...]*.c

See HELP DIR for various options to the DIRECTORY command.

http://groups.google.co.in/group/comp.os.vms/browse_thread/thread/c99fda59200b5d2/6deb1c97c59a3f7e?lnk=st&q=find+command+in+vms&rnum=1&hl=en#6deb1c97c59a3f7e
0
 
Sam PanwarSr. Server AdministratorCommented:
http://www.openvms.digital.com/freeware/DFU026/

(this tool has quite a bit more to offer, than simply
 speedy searches ..)
0
 
abunaiCommented:
catoaguilar is correct.

An additional note: if your machine has only one drive, the system drive, your directory command could be:

dir sys$sysdevice:[000000...]ministry_census.prg
0
 
JohnLucaniaAuthor Commented:
great!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.