Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dirname(1) — Ultrix-32 3.1D RISC

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

basename(1)

sh(1)

dirname(1)

NAME

dirname − deliver directory names from pathname

SYNTAX

dirname string

DESCRIPTION

The dirname command delivers all but the last level of the path name in string.

EXAMPLES

The following example sets the shell variable NAME to /usr/src/cmd:

NAME=dirname /usr/src/cmd/cat.c

SEE ALSO

basename(1), sh(1)

Commands

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