Would it be possible in bash to create a variable and use this variable in the pipe?
So something like this:
MYCOMMAND="ssh user@host 'tee -a Log/my.log'"
echo "Hello" | $MYCOMMAND
Doing it like the example above gives tee -a Log/my.log: No such file or directory
How to do this?