The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
separate a line having particular field
.
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
:
separate a line having particular field
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
10-13-2008
otheus
Moderator ala Mode
Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,892
Looks like sometimes that field doesn't appear. So you might want to augment it with:
Code:
awk '$3 == "D" { print $4 }' datafile >newfile
And just pipe through "sort -u" so that you have only unique id's.
otheus
View Public Profile
Visit otheus's homepage!
Find all posts by otheus
Find otheus's past nominations received
Find otheus's present nominations given