Description#
concatenate file(s) and print on standard output
Usage#
# Display contexts of a file
cat test.txt
# Create a new file
cat >filename.txt
> some content
> ctrl+d
# Create new file with EOF
cat >filename.txt <<EOF
> some text
> EOF
# File contents in reverse order
tac filename.txt
# Append the content of multiple files, into a already existin file
cat first.txt second.txt >> full.txtOptions#
| Options | Description |
|---|---|
| -n | Show Line numbers |
| -e | Shows non-printing characters and ends lines with $ |
| -s | Displays non-printing characters, except for tabs and end-of-line characters. |
| -A | Display All characters |
Installation#
NA