title: How to call awk to process /var/log/wtmp?
body: <p>This is my list file</p>
  
  <pre class="lang-none prettyprint-override"><code>neifer   pts/1        161.10.120.51    Tue Oct 23 01:08 - 01:13  (00:04)
  neifer   pts/1        161.10.120.51    Tue Oct 23 00:47 - 01:08  (00:20)
  reboot   system boot  2.6.32-042stab11 Mon Oct 22 15:34 - 01:43  (10:08)
  reboot   system boot  2.6.32-042stab11 Mon Oct 22 12:45 - 15:33  (02:48)
  root     pts/0        125.160.194.15   Mon Oct 22 04:45 - 04:46  (00:01)
  root     pts/0        125.160.194.15   Sat Oct 20 02:06 - 02:13  (00:06)
  </code></pre>
  
  <p>I want to keep only some parts, namely:</p>
  
  <pre><code>root     pts/0        125.160.194.15
  root     pts/0        125.160.194.15
  </code></pre>
  
  <p>I tried this command but it did not work:</p>
  
  <pre><code>awk '/root/ { print $1, $2, $3 }' /var/log/wtmp
  </code></pre>