The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-15-2008
Franklin52 Franklin52 is offline
Moderator
 

Join Date: Feb 2007
Posts: 1,928
One possibility:

Code:
awk '{a[$2]}END{for(i in a){n++};print n}' file
Regards
Reply With Quote