Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dirname(1) — Sprite KS.390

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(1)

basename(1)

DIRNAME  —  User Commands

NAME

dirname − display directory portion of a pathname

SYNOPSIS

dirname string

DESCRIPTION

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

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

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

SEE ALSO

sh(1), basename(1)

Sprite version 1.0  —  April 29, 1985

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