• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 622
  • Last Modified:

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.  
0
JohnLucania
Asked:
JohnLucania
3 Solutions
 
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
 
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
 
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now