HPUX showcdf[1]

showcdf(1) showcdf(1)
NAME
showcdf - show the actual path name matched for a CDF
SYNOPSIS
showcdf [-chs] name ...
DESCRIPTION
showcdf displays on the standard output the actual path name matched
for each path name specified in the argument list. If any name is a
context-dependent file (CDF), the actual file matched for that name is
displayed. If any name is not a CDF, the name is simply displayed.
Options
showcdf recognizes the following options:
-c Suppress the printing of non-CDF files. Only files whose
path contains a CDF are displayed.
-h Hides, rather than displays, any unnecessary parts of the
specified path names. If any name is a context-dependent
file (CDF), any portions of name that match the current
context are removed from the path.
-s Suppress all output. This option is useful when testing
for the exit value from showcdf.
RETURN VALUE
Upon completion, showcdf returns one of the following exit values:
0 No CDF|c s were specified.
1 At least one CDF was specified.
2 An error occurred (for example, a file is inaccessible).
EXAMPLES
The following example shows the output of showcdf when applied to the
files /etc/inittab and /usr/adm/sulog, which are CDFs, and
/etc/passwd, which is not a CDF:
$ showcdf /etc/inittab /usr/adm/sulog /etc/passwd
/etc/inittab+/donald
/usr/adm+/donald/sulog
/etc/passwd
$ showcdf -c /etc/inittab /usr/adm/sulog /etc/passwd
/etc/inittab+/donald
/usr/adm+/donald/sulog
The following example shows the output of showcdf -h when applied to
/etc/inittab+/donald and /etc/inittab+/minnie, where donald matches
the current context, but minnie does not.
Hewlett-Packard Company - 1 - HP-UX Release 9.0: August 1992
showcdf(1) showcdf(1)
$ showcdf -h /etc/inittab+/donald /etc/inittab+/minnie
/etc/inittab
/etc/inittab+/minnie
AUTHOR
showcdf was developed by HP.
SEE ALSO
getcdf(3C), cdf(4).
Hewlett-Packard Company - 2 - HP-UX Release 9.0: August 1992