head

    head command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.3
    License
    Apache-2.0
    Last updated
    9 days ago
    Downloads
    112

    #head

    Print the beginning of inputs for MoonX.

    moonx cli/head@0.2.3 [-qvz] [-n NUM|-c NUM] [FILE...]

    #Supported scope

    Print the first ten lines by default. Read files or stdin; negative counts omit the last N units instead.

    #Options

    OptionDescription
    -n, --lines=NSelect N records.
    -c, --bytes=NSelect N bytes.
    -q, --quiet, --silentSuppress file headers.
    -v, --verboseAlways show file headers.
    -z, --zero-terminatedUse NUL-delimited records.
    --help / --versionShow help / package version.

    #Limitations

    • Counts measure bytes or records, not Unicode characters. Negative counts may retain the excluded suffix in memory.

    #Examples

    moonx cli/head@0.2.3 -n 5 notes.txt moonx cli/head@0.2.3 -c 16 data.bin

    Source Files