Suppose that I have a file called temp.txt. Using the cat program, I would like to add the contents of this file to the end of myfile.txt -- creating myfile.txt if it does not exist and appending to it if it does.
I am considering these possibilities:
cat temp.txt > myfile.txt
or
cat temp.txt >> myfile.txt
Both commands appear to work as I want. So, my question is, what is the difference between > and >>? Thanks for your time.