Files
bare-operating-system/packages/bare-os-coreutils/man/pages/dirname.json
T
2026-04-03 22:34:08 -04:00

23 lines
673 B
JSON

{
"name": "dirname",
"section": 1,
"title": "return directory portion of a pathname",
"synopsis": ["dirname [OPTION]... [OPERAND]..."],
"description": "Prints the directory portion of each path. -z emits NUL-terminated records (host stdout).",
"options": [
{ "flag": "-z, --zero", "meaning": "Separate outputs with NUL (requires process.stdout.write)" }
],
"keywords": ["dirname", "bare-os", "coreutils"],
"examples": [
{
"caption": "parent path",
"code": "dirname /a/b/c.txt"
},
{
"caption": "compose with basename",
"code": "p=/x/y/z; echo $(dirname $p)/$(basename $p)"
}
],
"listCategory": "coreutils"
}