Campbell Ritchie wrote:What happens if you interpose '\n' between the two file names?
But how about this?
The pair of double-quotes on the "echo" statement shouldn't be essential. But it does accent the fact that you're interjecting a bare line into the pipe where "-" in the cat command can pick it up.
And just in case there's confusion, I should point out that ">>result" appends all of the about to whatever was already in result. If you wanted result to be only the two files with intervening line, then you'd use ">", not ">>".
Got idle CPU cycles? Join the war on COVID-19 by donating them to find the coronavirus' weak spots. folding@home Runs in the background. https://foldingathome.org
That's my roommate. He's kinda weird, but he always pays his half of the rent. And he gave me this tiny ad: