Wednesday, April 4, 2012

Copy content of one file to another file

Using "CAT" shell command we can copy content of one file to other file.

cat file1 >> file2

Note: Double redirect (>>) appends the contents of file1 to file2.
         Single redirect ( > ) overwrites the contents of file2 with the 
         contents of file1.