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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 02-05-2007
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 579
Quote:
Originally Posted by mahalakshmi
It's working fine. I would like to know about the -u -k optiosn in the sort command. Could you please explain.

thanks
-k 1,1 sort the content of inputfile using first column as the primary sort key and -u is there to display uniq values only. Read the man sort for more details.