cat cmd command 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 in windows
Just use type command in Windows as follows:
C:\>echo hi > a.txt
C:\>echo bye > b.txt
C:\>type a.txt b.txt > c.txt
C:\>type c.txt