title: Writing " to a file in bash
body: <p>Simply I need to write</p>
  
  <pre><code>"echo" t${count} = "$"t${count}"
  </code></pre>
  
  <p>To a text file, including all the So the output would be something like:</p>
  
  <pre><code>echo "  t1  = $t1"
  </code></pre>
  
  <p>With " as they are. So I have tried:</p>
  
  <pre><code>count=1
  saveIFS="$IFS"
  IFS=$'\n'
  array=($(&lt;TEST.txt))
  IFS="$saveIFS"
  for i in "${array[@]}"
  do
  echo "echo" t${count} = "$"t${count}""
  (( count++ ))
  done &gt;&gt; long1.txt
  </code></pre>
  
  <p>And variations on this such as:</p>
  
  <pre><code>echo "echo" """"" t${count} = "$"t${count}""
  </code></pre>
  
  <p>But I guess the wrapping in double " is only for variables.</p>
  
  <p>Ideas?</p>