26 lines
609 B
JSON
26 lines
609 B
JSON
{
|
|
"name": "dirname",
|
|
"section": 1,
|
|
"title": "return directory portion of a pathname",
|
|
"synopsis": [
|
|
"dirname [OPTION]... [OPERAND]..."
|
|
],
|
|
"description": "Bare OS implementation of return directory portion of a pathname. Full behavior is defined in packages/bare-os-coreutils/src/dirname.js.",
|
|
"options": [],
|
|
"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)"
|
|
}
|
|
]
|
|
}
|