tail

    tail command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.9
    License
    Apache-2.0
    Last updated
    14 hours ago
    Downloads
    242

    #tail

    Print the end of files or standard input through MoonX.

    #Usage

    moonx cli/tail -n 20 app.log moonx cli/tail -n +2 input.txt moonx cli/tail -f app.log

    Print ten lines by default. A leading + starts at the specified one-based line or byte; -f follows an open file.

    #Common options

    OptionDescription
    -q, --quietSuppress file headers.
    -v, --verboseAlways print file headers.
    -f, --followFollow an open regular file.
    -F, --follow-nameFollow regular files by name and retry on Linux and macOS.
    -z, --zero-terminatedUse NUL-delimited records.
    -n VALUE, --lines VALUESelect records; +K starts at record K. Default: 10.
    -c VALUE, --bytes VALUESelect bytes; +K starts at byte K.
    -s VALUE, --sleep-interval VALUESet follow polling interval; default 1. Default: 1.
    --helpShow help.
    --versionShow the version.

    #Notes

    • -f follows an open descriptor; following stdin ends at EOF. On Linux and macOS, -F polls regular files by name, retries missing names and reads replacements from the beginning. Grant read access to the files being followed. Windows rejects -F because volume identity comparability is unavailable.

    Build from source with the MoonBit 1.0 RC1 toolchain.

    See the compatibility guide for the supported profile.

    Source Files