Displays the names of all the directories whose names match the specified directory name. SYNOPSIS DIRECTORY DIRECTORY directory-name [prepositional-phrase] Arguments directory-name A specific directory name or a complete directory specification followed by a wildcard template for matching simple names of directories. prepositional-phrase A phrase that affects the destination or content of command output. You can use one or more prepositional phrases. Be sure to precede each of the following prepositional phrases with a comma and a space: with attribute [relop] value When used with a wildcard directory-name, limits the output only to directories whose specified attributes have certain values. to file[=]filename Redirects the output to filename. If the file does not exist, this command creates it. If the file does exist, its contents are overwritten. to extend file[=]filename Appends the output to an existing filename. If the file does not exist, it is created. to terminal Directs the output to the terminal. This is the default option.
1 – example
The following command displays the names of all the directories whose names are stored in the directory .sales. dns> directory directory .sales.*