tail

    tail command for MoonX.

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

    #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.
    -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

    • Follow mode tracks the open descriptor, not a replaced pathname. Rotation-aware -F is unsupported; following stdin ends at EOF.

    See the compatibility guide for the supported profile.

    Source Files