join

    join command for MoonX.

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

    #join

    Join two sorted files on a common field through MoonX.

    #Usage

    moonx cli/join first.txt second.txt moonx cli/join -t : -1 1 -2 1 first.txt second.txt

    Join on the first whitespace-delimited field by default. Select fields, output columns and unpaired records as needed.

    #Common options

    OptionDescription
    -1 VALUE, --field1 VALUEChoose each file's join field.
    -2 VALUE, --field2 VALUEChoose each file's join field.
    -t VALUE, --separator VALUESet a single-byte field separator.
    -a VALUE, --after VALUEInclude unpaired rows from file 1 or 2.
    -e VALUE, --empty VALUEReplace missing or empty fields. Default: "".
    -o VALUE, --output VALUEChoose output fields.
    -i, --ignore-caseCompare keys ignoring ASCII case.
    -h, --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Inputs must be sorted by the selected join fields. Comparison uses C-locale bytes and optional ASCII case folding.

    See the compatibility guide for the supported profile.

    Source Files