find

    find command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.4
    License
    Apache-2.0
    Last updated
    10 hours ago
    Downloads
    87

    #find

    Search directory trees for MoonX.

    moonx cli/find@0.2.4 [PATH...] [EXPRESSION]

    #Supported scope

    Walk without following symbolic links. Combine predicates with negation, AND and OR; print matching paths, execute commands or delete matches.

    #Options

    OptionDescription
    -name PATTERN / -path PATTERNMatch names / paths with shell patterns.
    -type / -xtype / -empty / -sizeTest entry type, emptiness or size.
    -amin / -atime / -cmin / -ctime / -mmin / -mtimeTest access, status-change or modification age.
    -newer / -anewer / -cnewer / -newerXY / -usedCompare timestamps; X/Y support a, c and m.
    -readable / -writable / -executableTest effective access.
    -mindepth / -maxdepth / -depth / -pruneControl traversal.
    -print / -print0Print newline / NUL-delimited paths.
    -exec COMMAND ... ; / +Execute per match / in batches.
    -deleteDelete matches in postorder.
    --help / --versionShow help / package version.

    #Limitations

    • Symlink following, ownership/link-target predicates and the complete findutils language are unsupported.
    • Only one output/execution action is accepted; -exec must be the final expression action. Birth-time and literal-time selectors are unsupported.

    #Examples

    moonx cli/find@0.2.4 . -name '*.mbt' moonx cli/find@0.2.4 . -type f -maxdepth 2 -print0

    Source Files

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io