_dirname(1f) - [FUNIX:FILESYSTEM] strip last component from file name (LICENSE:PD)
Synopsis
Description
Options
Examples
See Also
_dirname [NAME...] [ -zero]|-help|-version]
Output each NAME with its last non-slash component and trailing slashes removed. if NAME contains no /s, output . (meaning the current directory).If no NAME is specified read names from stdin.
-zero end each output line with NUL, not newline -help display this help and exit -version output version information and exit
Sample program executions:
_dirname /usr/bin/ -> "/usr" _dirname dir1/str dir2/str -> "dir1" followed by "dir2" _dirname stdio.h -> "."
dirname(1), basename(1), readlink(1), realpath(1)
_dirname (1) | March 11, 2021 |