dirname.1 (716B)
- .\" Collection of Unix tools, comparable to coreutils
- .\" Copyright 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
- .Dd 2021-04-05
- .Dt DIRNAME 1
- .Os
- .Sh NAME
- .Nm dirname
- .Nd return the parent directory of a file pathname
- .Sh SYNOPSIS
- .Nm
- .Ar string
- .Sh DESCRIPTION
- Returns the parent directory of
- .Ar string .
- .Sh EXIT STATUS
- .Ex -std
- .Sh SEE ALSO
- .Xr direname 3
- .Sh STANDARDS
- .Nm
- is close but not compliant with the
- .St -p1003.1-2008
- specification as it uses
- .Xr dirname 3
- directly instead of extracting the non-directory portion of
- .Ar string
- with it's own algorithm.
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact@hacktivis.me