title: How to trim the output of the UNIX who Command?
body: <p>I am working with an idea using the unix <code>who</code> command.  As we all know, there does not seem to be a direct switch that gives just the username and line (terminal) info without the date and screen info... eg:  the output is <code>mneedham tty7...2012-02-19 11:26 (:0)</code></p>
  
  <p>What I am trying to get is just the <code>mneedham tty7</code> part.  The solution needs to work no matter how long the username and terminal information.</p>
  
  <p>I tried using <code>tr -s ' '</code> (one space) like <code>who | tr -s ' '</code> and that gave me one space between everything.  Not quite what I was seeking.  Tried <code>cut -d" " -f1</code> gets the username only.  So I am hopeful someone can help me find the right command to get both bits of information.</p>
  
  <p>Thanks.</p>