basename

    basename command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.6
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    149

    #basename

    Print the final component of a path through MoonX.

    #Usage

    moonx cli/basename /home/user/report.txt moonx cli/basename -s .txt reports/first.txt reports/second.txt

    A second operand removes a literal suffix. Use -a for multiple names; -s also enables multiple-name mode.

    #Common options

    OptionDescription
    -a, --multipleProcess each operand separately.
    -s VALUE, --suffix VALUERemove a matching suffix; implies multiple operands.
    -z, --zeroEnd each result with NUL.
    --helpShow help.
    --versionShow the version.

    #Notes

    • Paths are handled lexically; files do not need to exist.

    See the compatibility guide for the supported profile.

    Source Files