Output the last part of files.

Synopsis

tail [OPTION]... [FILE]...

Description

Print the last 10 lines of each FILE to standard output. Runs in the just-bash WASM shell inside SLICC.

Options

-n, --lines=NUM Output the last NUM lines. +NUM means output starting with line NUM.

-c, --bytes=NUM Output the last NUM bytes.

Examples

$ tail log.txt

Print the last 10 lines.

$ tail -n 50 log.txt

Print the last 50 lines.

$ tail -n +3 data.txt

Print from the 3rd line onward.

Notes

Operates on the SLICC virtual filesystem (LightningFS/IndexedDB). The -f (follow) flag is not supported.

See Also

head, cat, wc