The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
to retrieve unique values
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
to retrieve unique values
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
02-05-2007
tayyabq8
Moderator
Join Date: Nov 2004
Location: Bahrain
Posts: 579
Although your question is not clear, a sample input/output would help. But I'll assume that you want extract unique names from the first column of your input file:
Code:
sort -k 1,1 -u inputfile
Above will give you the last occurrence of names.
tayyabq8
View Public Profile
Find all posts by tayyabq8
Find tayyabq8's past nominations received
Find tayyabq8's present nominations given