title: How to append strings to the same line instead of creating a new line?
body: <p>Redirection to a file is very usefull to append a string as a new line to a file, like</p>
  
  <pre><code>echo "foo" &gt;&gt; file.txt
  echo "bar" &gt;&gt; file.txt
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>foo
  bar
  </code></pre>
  
  <p>But is it also possible to redirect a string to the same line in the file ?</p>
  
  <p>Example:</p>
  
  <pre><code>echo "foo" &lt;redirection-command-for-same-line&gt; file.txt
  echo "bar" &lt;redirection-command-for-same-line&gt; file.txt
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>foobar
  </code></pre>