title: print specific field from first line in file using awk
body: <p>I have a file (logins.txt) that I need to make into a file that only displays the first and last login date/time and the last login date/time. The logins.txt looks like this:</p>
  
  <pre><code>Feb 13 2:43 (login IP)
  Feb 13 2:48 (login IP)
  Feb 13 5:23 (login IP)
  Feb 13 9:43 (login IP)
  Feb 14 1:34 (login IP)
  Feb 14 8:42 (login IP)
  Feb 14 8:47 (login IP)
  </code></pre>
  
  <p>I want to print:</p>
  
  <pre><code>First Login: Feb 13 2:43
  Last Login: Feb 14 8:47
  </code></pre>
  
  <p>Now keep in mind I'm using an .awk file where I have all my awk statements in that executes logins.txt and makes a different file with what I want to print out.</p>
  
  <p>The last login was easy. I simply just put:</p>
  
  <pre><code>END{
  print "$1, $2, $3";
  }
  </code></pre>
  
  <p>Which prints out the last occurrence of those fields.
  But how do I do it with the first occurrence?</p>
  
  <p>EDIT:
  Awesome, putting NR==1 works but I NEED this in the END field because I need it below other stuff I want to print. How do I put it below everything?
  Also I want it to print like this:</p>
  
  <pre><code>Blah blah blah blah blah blah blah blah
  Blah blah blah blah blah blah blah blah
  Blah blah blah blah blah blah blah blah
  First Login: Feb 13 2:43      Last Login: Feb 14 8:47
  </code></pre>
  
  <p>Here is my END with print statements</p>
  
  <pre><code>NF==1 {a=$1; b=$2; c=$3;}
  
  END{
     print "Feed\t\t\tAccepted\tRejected\tCanceled";
     print "-----------------------------------------------------------------";
     print "swrinde:\t\t", accepted_sw"\t\t", rejected_sw"\t\t", canceled_sw"\t\t";
     print "news.cais.net:\t\t", accepted_ne"\t\t", rejected_ne"\t\t", canceled_ne"\t\t";
     print "\?:\t\t\t", accepted_un"\t\t", rejected_un"\t\t", canceled_un"\t\t";
     print "\nStart Time = ", a, b, c RS "\tEnd Time =", $1, $2, $3;
  }
  </code></pre>