Concatenate files and print on the standard output.
Synopsis
cat [OPTION]... [FILE]...
Description
Concatenate one or more files and print their contents to standard output. If no file is given or if the file is -, reads from standard input. Runs in the just-bash WASM shell inside SLICC, operating on a virtual filesystem backed by IndexedDB.
Options
-n, --number Number all output lines.
--help Display help and exit.
Examples
$ cat file.txt
Display the contents of file.txt.
$ cat file1.txt file2.txt
Concatenate and display two files.
$ cat -n script.sh
Display script.sh with line numbers.
$ echo "hello" | cat
Read from standard input via pipe.
Notes
Operates on the SLICC virtual filesystem (LightningFS/IndexedDB). Supports reading from stdin with - marker. Unlike GNU cat, only the -n flag is functional; other common flags (-A, -b, -s, -v, -e, -t) are accepted but have no effect.
See Also
head, tail, tac, wc