Output the first part of files.

Synopsis

head [OPTION]... [FILE]...

Description

Print the first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. Runs in the just-bash WASM shell inside SLICC.

Options

-n, --lines=NUM Print the first NUM lines instead of the first 10.

-c, --bytes=NUM Print the first NUM bytes.

Examples

$ head README.md

Print the first 10 lines of README.md.

$ head -n 20 log.txt

Print the first 20 lines.

Notes

Operates on the SLICC virtual filesystem (LightningFS/IndexedDB).

See Also

tail, cat, wc