I'm learning bash redirections and wonder if there a way to emulate tee command with cat using redirections. Is that possible? Or may be there are some other ways to do this.
Before asking about tee I just sought for a possibility to split one streem into two identical ones using bash expression. But it seems to be impossible.
cat
; you would I believe have to write your own tool that reads from standard input and writes simultaneously to standard output and to a specified list of files. But then you will end up with a roll-your-own implementation oftee
.MULTIOS
option set, but I don't think you can hack it into bash.