head

    head command for MoonX.

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

    #head

    Print the beginning of files or standard input through MoonX.

    #Usage

    moonx cli/head input.txt moonx cli/head -n 3 input.txt moonx cli/head -c 16 input.bin

    Print ten lines by default. Use -n for lines or -c for bytes; negative counts omit that many records or bytes from the end.

    #Common options

    OptionDescription
    -q, --quietSuppress file headers.
    -v, --verboseAlways show file headers.
    -z, --zero-terminatedUse NUL-delimited records.
    -n VALUE, --lines VALUESelect N records. Default: 10.
    -c VALUE, --bytes VALUESelect N bytes.
    --helpShow help.
    --versionShow the version.

    #Notes

    • Counts and supported size suffixes must fit the command's Int64 range.

    See the compatibility guide for the supported profile.

    Source Files