Manual page for getdev(1M)
getdev - lists devices based on criteria
/usr/bin/getdev [-ae] [criteria ...] [device ...]
generates a list of devices that match certain criteria.
The criteria includes
a list of attributes (given in expressions) and a list of devices.
criteria are given, all
devices are included in the list.
Devices must satisfy at least one of the criteria in the list unless the
-a option is used.
Then, only those devices which match all of the
criteria in a list will be included.
Devices which are defined on the command line and which match the criteria are
included in the generated list.
However, if the -e option is used, the
list becomes a set of devices to be excluded from the list.
defines the criteria that a device must match to
be included in the generated list.
Should be specified by giving expressions.
defines the devices which should be included in the generated list.
This can be the pathname of the device or the device alias.
Criteria Expression Types
There are four possible expression types which the criteria specified in the
criteria argument may follow:
Selects all devices whose attribute attribute is defined and is equal to
Selects all devices whose attribute attribute is defined and does not
Selects all devices which have the attribute attribute defined.
Selects all devices which do not have the attribute attribute defined.
manual page for a complete listing and description of
Specifies that a device must match all criteria to
be included in the list
generated by this command.
The option has no effect if no criteria are defined.
Specifies that the list of devices which
follows on the command line should be
from the list generated by this command.
the named devices are
in the generated list.)
The flag has no effect if no devices are defined.
The command will exit with one of the following values:
- 0 =
Successful completion of the task.
- 1 =
Command syntax incorrect, invalid option used, or internal error occurred.
- 2 =
Device table could not be opened for reading.
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97