Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ showcdf(1) — HP-UX 8.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getcdf(3C)

cdf(4)

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

−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

The exit values are:

0 No CDFs 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. 

$ 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  —  HP-UX Release 8.05: June 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026