title: Format output in bash
body: <p>I have output in bash that I would like to format.  Right now my output looks like this:</p>
  
  <pre><code>1scom.net 1
  1stservicemortgage.com 1
  263.net 1
  263.sina.com 1
  2sahm.org 1
  abac.com 1
  abbotsleigh.nsw.edu.au 1
  abc.mre.gov.br 1
  ableland.freeserve.co.uk 1
  academicplanet.com 1
  access-k12.org 1
  acconnect.com 1
  acconnect.com 1
  accountingbureau.co.uk 1
  acm.org 1
  acsalaska.net 1
  adam.com.au 1
  ada.state.oh.us 1
  adelphia.net 1
  adelphia.net 1
  adelphia.net 1
  adelphia.net 1
  adelphia.net 1
  adelphia.net 1
  adelphia.net 1
  adelphia.net 1
  adelphia.net 1
  adelphia.net 1
  adelphia.net 1
  adelphia.net 1
  aecom.yu.edu 1
  aecon.com 1
  aetna.com 1
  agedwards.com 1
  ahml.info 1
  </code></pre>
  
  <p>The problem with this is none of the numbers on the right line up.  I would like them to look like this:</p>
  
  <pre><code>1scom.net                 1
  1stservicemortgage.com    1
  263.net                   1
  263.sina.com              1
  2sahm.org                 1
  </code></pre>
  
  <p>Would there be anyway to make them look like this without knowing exactly how long the longest domain is? Any help would be greatly appreciated!</p>
  
  <p>The code that outputted this is:</p>
  
  <pre><code>grep -E -o -r "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b" $ARCHIVE | sed 's/.*@//' | uniq -ci | sort | sed 's/^ *//g' | awk ' { t = $1; $1 = $2; $2 = t; print; } ' &gt; temp2
  </code></pre>