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 ">>".
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
I found some pretty shells, some sea glass and this lovely tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop