title: How to write the output of a command twice into a file
body: <p>I run some command that generates ip address as output. But I am developing a workflow where I need the ip address to be written twice. Below is the sample command and its output.</p>
  
  <pre><code>$ some command &gt;&gt; out.txt
  
  $ cat out.txt
  10.241.1.85
  hdfs://10.241.1.236/
  hdfs://10.241.1.237/
  </code></pre>
  
  <p>What i want is to duplicate the output and it should look like this.</p>
  
  <pre><code>10.241.1.85
  hdfs://10.241.1.236/
  hdfs://10.241.1.237/
  10.241.1.85
  hdfs://10.241.1.236/
  hdfs://10.241.1.237/
  </code></pre>
  
  <p>Any help please?</p>