logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

dirname.1 (716B)


  1. .\" Collection of Unix tools, comparable to coreutils
  2. .\" Copyright 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
  4. .Dd 2021-04-05
  5. .Dt DIRNAME 1
  6. .Os
  7. .Sh NAME
  8. .Nm dirname
  9. .Nd return the parent directory of a file pathname
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Ar string
  13. .Sh DESCRIPTION
  14. Returns the parent directory of
  15. .Ar string .
  16. .Sh EXIT STATUS
  17. .Ex -std
  18. .Sh SEE ALSO
  19. .Xr direname 3
  20. .Sh STANDARDS
  21. .Nm
  22. is close but not compliant with the
  23. .St -p1003.1-2008
  24. specification as it uses
  25. .Xr dirname 3
  26. directly instead of extracting the non-directory portion of
  27. .Ar string
  28. with it's own algorithm.
  29. .Sh AUTHORS
  30. .An Haelwenn (lanodan) Monnier Aq Mt contact@hacktivis.me