Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dirname(1) — UTek 4.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

basename(1)

pathof(1)

sh(1sh)



DIRNAME(1)              COMMAND REFERENCE              DIRNAME(1)



NAME
     dirname - deliver directory portion of path name

SYNOPSIS
     dirname path

DESCRIPTION
     Dirname delivers all but the last level of the path name in
     path.

EXAMPLES
     The following example will set the shell variable NAME to
     the name of the directory which contains the command `sh'.

          NAME=`dirname \`pathof sh\``

     Note the use of pathof to get the full pathname of the
     command, and the use of escaped backquotes to allow two
     levels of command substitution.

CAVEATS
     The dirname of a file name with no slashes is considered to
     be `.'.  For example:

          dirname foo

     prints `.'.

SEE ALSO
     basename(1), pathof(1), and sh(1sh).

























Printed 4/6/89                                                  1





































































%%index%%
na:312,100;
sy:412,186;
de:598,277;
ex:875,516;
ca:1391,282;
se:1673,185;
%%index%%000000000107

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