dirname

    dirname command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.7
    License
    Apache-2.0
    Last updated
    3 days ago
    Downloads
    202

    No dependencies

    #dirname

    Print the parent component of each path through MoonX.

    #Usage

    moonx cli/dirname /home/user/report.txt moonx cli/dirname one/file.txt two/file.txt

    Print one result per operand. A name without a directory component produces a dot.

    #Common options

    OptionDescription
    -z, --zeroEnd each result with NUL.
    --helpShow help.
    --versionShow the version.

    #Notes

    • Paths are handled lexically, without resolving symbolic links or checking existence.

    Build from source with the MoonBit 1.0 RC1 toolchain.

    See the compatibility guide for the supported profile.

    Source Files