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

Options#

OptionsDescription
-nShow Line numbers
-eShows non-printing characters and ends lines with $
-sDisplays non-printing characters, except for tabs and end-of-line characters.
-ADisplay All characters

Installation#

NA

References#