The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Compare 2 sorted files
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
:
Compare 2 sorted files
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
01-21-2008
varungupta
Registered User
Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 187
Quote:
Originally Posted by
dennis.jacob
Try this:
Code:
comm -13 file1 file2
Code:
diff file1 file2 | awk '/^>/{print $2 }'
Could you please tell me why -13 is being used in comm command ?
varungupta
View Public Profile
Find all posts by varungupta