The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Comparing 2 list and deleting deuplicate entries
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Comparing 2 list and deleting deuplicate entries
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
08-14-2007
matrixmadhan
Technorati Master
Join Date: Mar 2005
Location: k-tier distributed caching
Posts: 2,736
here is with awk considering backwards option
Code:
awk 'BEGIN{ while ( getline < "2" ) { arr[$0] = i++; } } { if (!( $0 in arr )) { print } }' 1
matrixmadhan
View Public Profile
Find all posts by matrixmadhan