Originally posted by joshwilson1
I am looking for a way to take the text out of two fils and put it into one file. Could somebody tell me the command and the syntax associated with doing that? Thanks.
Posted by Crouse
Code:
page1.txt >> combined.txt
page2.txt >> combined.txt
http://www.bashscripts.org/docs/Bash-Ad ... ction.htmlHas some more info on that.
The single > outputs to a file also, the >> outputs to a single file, and if it exists already APPENDS (adds to) it.
Posted by jbsnakeor try
Code:
cat file1 file2 >> file3
cat can take more than one file at a time
simplistic no?