I have two files: foo.txt and bar.txt. I want a file named foobar.txt that is the content of both foo.txt followed by bar.txt. And if I change either file, I want foobar.txt to still output whatever is currently in foo.txt followed by bar.txt.
Now to get foobar.txt, I could execute:
cat foo.txt bar.txt > foobar.txt
But I would have to do this every time I edit either source file.
Ideally I would like to do something like this:
ln -[some arg that uses a command rather than a real file] "cat foo.txt bar.txt" foobar.txt
Is this even possible?