xxd

    xxd command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.5
    License
    Apache-2.0
    Last updated
    2 hours ago
    Downloads
    121

    #xxd

    Development candidate: cli/xxd@0.2.5. Publication is separate; latest.json records the uploaded coordinates.

    Create and reverse hex dumps for MoonX.

    moonx cli/xxd@0.2.5 [OPTION]... [INFILE [OUTFILE]]

    #Supported scope

    Display files or stdin as hex, bits or include text; reverse addressed hex, plain hex or binary dumps.

    #Options

    OptionDescription
    -a, --autoskiptoggle suppression of zero lines
    -b, --bitsbinary digit display
    -e, --littlelittle-endian groups
    -E, --ebcdicEBCDIC character display
    -g, --group=Nbytes per group
    -u, --upperuppercase hexadecimal digits
    -o, --offset=Nadd N to displayed offsets
    -p, -ps, --plainplain hexadecimal display
    -i, --includeC include display
    -r, --reversereverse a dump
    -c, --cols=Nbytes per line
    -l, --len=Nmaximum input bytes
    -s, --seek=[+][-]Ninput seek or reverse address adjustment
    -n, --name=NAMEC include symbol
    --help / --versionShow help / package version.

    #Extension and diagnostic contract

    Project aliases: --little/-littleendian select -e; --ebcdic/-ebcdic select -E. Project long-option syntax also accepts =VALUE for --cols, --group, --len, --name, --offset and --seek; these forms are not Vim xxd argument equivalence. -h/--help use the project metadata contract: stdout and status 0.

    See the finite option and diagnostic profile for the scope and upstream distinction.

    #Argument and exit-status contract

    Usage errors exit 1; runtime errors retain their command-specific statuses: input/open errors use 2, output errors use 3, input seek errors use 4, and backward output/offset errors use 5. Option values and operands after -- remain literal.

    #Limitations

    • Existing output files are rejected. Backward stdin seeks and backward writes to stdout are unsupported.
    • Reverse little-endian and include modes are unsupported.

    #Examples

    moonx cli/xxd@0.2.5 -p data.bin printf '68690a' | moonx cli/xxd@0.2.5 -r -p