title: remove white space in bash using sed
body: <p>I have a file that contains a number followed by a file path on each line for a large amount of files.  So it looks like this:</p>
  
  <pre><code>      7653 /home/usr123/file123456
  </code></pre>
  
  <p>But the problem with this is there is 6 empty white spaces before it which throws off the rest of my script.  I have included the line which produces it below:</p>
  
  <pre><code>cat temp | uniq -c | sed 's/  */ /g' &gt; temp2
  </code></pre>
  
  <p>I have narrowed it down to being the <code>uniq</code> command that produces the unnecessary white space.  I have tried to implement a <code>sed</code> command to delete the white space but for some reason it deletes all but one.  How would I be able to modify my <code>sed</code> statement or my <code>uniq</code> statement to get rid of these white spaces? Any help would be greatly appreciated!</p>