HP OpenVMS Systems

ask the wizard
Content starts here

Searching for Files, Subdirectories? Wildcards?

» close window

The Question is:

I just have a question regarding finding files on a VMS system.
Is there a way of searching all subdirectories for a file?
Something similar to the dir /s command in Dos.

The Answer is :

  OpenVMS permits wildcards within directory and file specifications.
  Two (of many) examples of this follow:
    $ DIRECTORY ddcu:[dir...]FILE*NAME.*
    $ SEARCH ddcu:[*...]*NAME*.TXT STRING
  Key to this specification is the "..." wildcard, though you could
  also use explicit directory specifications combined with wildcards
  if you wish to search only specific subdirectories.
  For details of the above commands, please see the OpenVMS User's
  Guide and the DCL Dictionary in the OpenVMS manual set, and please
  see the HELP library.
  Please review the OpenVMS Users' Guide for details of the OpenVMS
  file specification syntax and the proper use of wildcards, and for
  information on many of the other available features of OpenVMS.
  The OpenVMS documentation is available at the OpenVMS website.

answer written or last revised on ( 24-SEP-2002 )

» close window