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

Comparing and merging files on UNIX

Reply to Message Icon

Original Message
Name: ZD
Date: September 5, 2002 at 16:11:38 Pacific
Subject: Comparing and merging files on UNIX
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


Report Offensive Message For Removal


Response Number 1
Name: Jerry Lemieux
Date: September 5, 2002 at 16:35:49 Pacific
Subject: Comparing and merging files on UNIX
Reply: (edit)

Try the diff command.

diff fileA fileB > fileC

Jerry


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Comparing and merging files on UNIX

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge