Let say we have a text file demo.txt that only contains the word 'demo' and a text file sample.txt that only contains the word 'sample'.
I understand that cat demo.txt >> sample.txt would append the contents of demo.txt into the contents of sample.txt.
But what happens when I have the cat command on both sides of the redirection symbol? I've tried the same thing with single and double redirection. I've studied enough to know that you really want to use the double redirection over the single if you don't want something overridden. I also know that the cat command is short for concatenation (it was a surprise to me that the 'cat' command can double as a txt print "function").
What is it that I'm not understanding about how this works that I feel cat demo.txt >> cat sample.txt should produce results?