title: How can I add text to the same line?
body: <p>I used this command to find  mp3 files and write their name on log.txt:</p>
  
  <p><code>find -name *.mp3 &gt;&gt; log.txt</code> </p>
  
  <p>I want to move the files using the mv command and I would like to append that to the log file so it could show the path where the files have been moved. </p>
  
  <p>For example if the mp3 files are 1.mp3 and 2.mp3 then the log.txt should look like</p>
  
  <pre><code>1.mp3 &gt;&gt;&gt;&gt; /newfolder/1.mp3 
  
  2.mp3 &gt;&gt;&gt;&gt; /newfolder/2.mp3
  </code></pre>
  
  <p>How can I do that using unix commands? Thank you!</p>