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)
Nemo Release 3.1 | dirname- (1) | February 23, 2025 |