Computing.Net > Forums > Unix > Comparing and merging files on UNIX

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Comparing and merging files on UNIX

Reply to Message Icon

Name: ZD
Date: September 5, 2002 at 16:11:38 Pacific
OS: solaris8
CPU/Ram: 450
Comment:

Hi,

I am trying to compare 2 files (A and B) to come up with a list of lines that are in A but not in B and store that list in File C.

What UNIX commands can be used for this?

Thx

ZD



Sponsored Link
Ads by Google

Response Number 1
Name: Jerry Lemieux
Date: September 5, 2002 at 16:35:49 Pacific
Reply:

Try the diff command.

diff fileA fileB > fileC

Jerry


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Comparing and merging files on UNIX

Connect to Windows files from UNIX www.computing.net/answers/unix/connect-to-windows-files-from-unix/3739.html

File transfer UNIX - dail-up modem www.computing.net/answers/unix/file-transfer-unix-dailup-modem/2097.html

compare two files and diff file wil www.computing.net/answers/unix/compare-two-files-and-diff-file-wil/7363.html