How to use |tee  -a command?