NAME

dirname - print the directory name of a path

SYNOPSIS

dirname string

DESCRIPTION

dirname prints the directory component of a path. Everything starting from the last / (or whatever the path separator is on your OS) is deleted.

OPTIONS

  • --version

ENVIRONMENT

The working of dirname is not influenced by any environment variables.

BUGS

dirname has no known bugs.

STANDARDS

This dirname implementation is compliant with the IEEE Std1003.2-1992 specification, also known as POSIX.2.

This dirname implementation is compatible with the OpenBSD implementation.

AUTHOR

This implementation of dirname was adapted by Michael Mikonos.

The original version was written by Abigail, but the code was completely replaced. Most of the documeantion is the original version.

COPYRIGHT and LICENSE

This program is copyright by Abigail, 1999, and Michael Mikonos, 2024.

This program is free and open software. You may use, copy, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same.