title: Bash redirect output to tty and file
body: <p>I'm trying to log some part of script execution. Logs should be displayed at second tty, and also written to a log file.</p>
  
  <p>I can do it with a simple:</p>
  
  <pre><code>echo "Hello log" &gt; /dev/tty2
  echo "Hello log" &gt; /var/log/my_logs
  </code></pre>
  
  <p>But it is very uncomfortable. I could also redirect echo to a particular place:</p>
  
  <pre><code>exec 1&lt;&gt;/var/log/my_logs
  exec 2&gt;&amp;1
  </code></pre>
  
  <p>But how can I redirect STDOUT to both /dev/tty2 and /var/log/my_logs at once?</p>