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 5/12/88 1
%%index%% na:312,100; sy:412,186; de:598,277; ex:875,516; ca:1391,282; se:1673,185; %%index%%000000000107