[UP]


Manual Reference Pages  - _dirname (1)

NAME

_dirname(1f) - [FUNIX:FILESYSTEM] strip last component from file name (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Examples
See Also

SYNOPSIS

_dirname [NAME...] [ -zero]|-help|-version]

DESCRIPTION

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.

OPTIONS

-zero end each output line with NUL, not newline
-help display this help and exit
-version
  output version information and exit

EXAMPLES

Sample program executions:

     _dirname /usr/bin/          -> "/usr"
     _dirname dir1/str dir2/str  -> "dir1" followed by "dir2"
     _dirname stdio.h            -> "."

SEE ALSO

dirname(1), basename(1), readlink(1), realpath(1)


_dirname (1) March 11, 2021
Generated by manServer 1.08 from 5e7082a4-efc6-4f2c-a0ec-9251b52cf18d using man macros.