Cat is part of Gnu Coreutils, made to Concatenate and write files.
There is 2 main way to feed inputs in cat:
cat file
echo "This is test" | cat
Will take data from standard input. (CTRL-D to quit)
cat > file
cat >> file
cat file1 file2 > file1_2
The "-" is standard input, which will allow you to add the data you want. (CTRL-D to quit)
cat file1 - file2 > file1_2
cat in reverse, will reed line from bottom up
tac file
cat -n file
cat -b file
Will squeeze repeated blank line into one.
cat -s file
cat -E file
cat -T file