June 2003
Beginner to intermediate
944 pages
43h 1m
English
dirname
dirname
pathname
Print pathname, excluding the last level. Useful for stripping the actual filename from a pathname. If there are no slashes (no directory levels) in pathname, dirname prints . to indicate the current directory. See also basename.
Read now
Unlock full access