tail

    tail command for MoonX.

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

    #tail

    Print and follow input endings for MoonX.

    moonx cli/tail@0.2.3 [-fz] [-qv] [-s SEC] [-n NUM|-c NUM] [FILE...]

    #Supported scope

    Print the last ten lines by default. +K starts at the Kth record/byte. File follow keeps the same open file across renames and handles truncation.

    #Options

    OptionDescription
    -n, --lines=NSelect records; +K starts at record K.
    -c, --bytes=NSelect bytes; +K starts at byte K.
    -q, --quiet / -v, --verboseSuppress / always print headers.
    -z, --zero-terminatedUse NUL-delimited records.
    -f, --followFollow an open regular file.
    -s, --sleep-interval=SECONDSSet follow polling interval; default 1.
    --help / --versionShow help / package version.

    #Limitations

    • -F/name replacement following is unsupported. Stdin follow exits at EOF.

    #Examples

    moonx cli/tail@0.2.3 -n 20 app.log moonx cli/tail@0.2.3 -f app.log

    Source Files