Is there an elegant way to both echo a command and save it to a file? The common use case is echo "test" >> someappendedfile.txt, in which case the command does not appear in bin/bash. By definition, >> is a re-direction, so doing both seems like a weird command. 
I would like the result of something like echo "test" >> someappendedfile.txt to both log to stdout and the appending file. 
Is there an alternative operator or utility that does what I am asking?
 
    