The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
eleminate repated process names and get second column value
.
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
:
eleminate repated process names and get second column value
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-01-2009
dennis.jacob
dj - the student
Join Date: Feb 2007
Location: Singapore/Bangalore/Cochin
Posts: 603
Try:
Code:
awk '{ if(a[$1]=="") {a[$1]=$2; print $1" "a[$1]; } }' filename
dennis.jacob
View Public Profile
Find all posts by dennis.jacob
Find dennis.jacob's past nominations received
Find dennis.jacob's present nominations given