The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Script that extract some lines from a file lookin into another
.
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
:
Script that extract some lines from a file lookin into another
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
01-24-2008
vgersh99
Moderator
Join Date: Feb 2005
Location: Boston, MA
Posts: 5,131
assuming file1 and file2 are of the same format:
Code:
nawk 'FNR==NR {file2[$2];next} !($2 in file2)' file2 file1
vgersh99
View Public Profile
Find all posts by vgersh99
Find vgersh99's past nominations received
Find vgersh99's present nominations given