dirname pathname
dirname
pathname
Print pathname excluding last level. Useful for stripping the actual filename from a pathname. See also basename.