2.4.2. cat#
cat prints or combines file contents.
2.4.2.1. Common cat usage#
cat file.txt
We can also read the file using cat:
Contents=$(cat file.txt)
“\n” prints a new line character
“-e” to interpret the new line escape characters as escape characters
echo -e "START OF FILE\n$Contents\nEND OF FILE"