command line cat code example
Example 1: cat command
# cat command be used to show, create and redirect the contents of file
# create file called test.txt and ask for input
cat >test.txt
# show command
cat text.txt
# Combinint multiple files into single files
cat text text2 text3 > text3
Example 2: cat command in linux with examples
$ cat example.txt
Example 3: cat bash
cat(1) - concatenate files and print on the standard output
With no FILE, or when FILE is -, read standard input.