echo 'test' | tee -a >(echo 'first child'; cat -) >(echo 'second child' ; cat -) first child second child test test test