The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
compare two files
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
compare two files
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
03-29-2008
naree
Registered User
Join Date: Feb 2008
Posts: 74
try this out
Hi ,
diff -U 2 file1 file2 | awk '/^\ / {print $0}' >> file3
diff -U 2 file1 file2 | awk '/^-/ {print $0}' >> file4
Thanks&Regards
Naree
naree
View Public Profile
Find all posts by naree