Simple tee command usage for shell scripting
NarendraP
Learn How to Automate Common Tasks with Bash Shell Scripting
                                        tee command
 tee command is used to display the output and also to store that output into a file. (It does both the
  tasks simultaneously).
 It is useful to create logs for shell scripting.
 Syntax:
         Command | tee outputFile.txt
         Command | tee –a outputFile.txt
      Learn How to Automate Common Tasks with Bash Shell Scripting
Thank you