title: Convert Multi-line output into single line
body: <p>I manage a computer lab with 40 ubuntu machines and I have cobbled together this command to find the total disk usage of files larger than 100M in the students' home directories:</p>
  
  <pre><code>for i in `cat ./lab-machines.txt ` ; do ssh $i "nohup find /home -size +100M -print0 | du --files0-from=- -ch | tail -1 &amp;&amp; hostname &amp;&amp; ls /home" ; done &gt; lab-disk-usage.txt
  </code></pre>
  
  <p>The file "lab-machines.txt" contains the hostnames of the computers on a separate line each. The command runs from a server that has been configured with password-less logins into the lab machines for the root user. The output in the file lab-disk-usage.txt contains something like this for every machine (I've inserted comments in parenthesis):</p>
  
  <pre><code>69G total    
  hostname
  student-username (changes)
  admin-username (always the same)
  lost+found (always the same)
  </code></pre>
  
  <p>I would like the output to look like this for each machine:</p>
  
  <blockquote>
    <p>69G hostname student-username</p>
  </blockquote>
  
  <p>I am not familiar enough with text filtering to get this done in time. Can you help?</p>