Wanted to ‘cat’ a content of one file to be appended to another which had no permissions for my user, however, I had ‘sudo’ permissions. Basically failed miserably at it, then I figured it might be something to do with the ‘tee’ I knew about from vim.
Which in the end lead to this:
And boom! worked a charm, though dumped the content of the file to stout as well. Making it:
It’s one of those little brain teasers trying to figure out 😀