Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with diff command usage

Status
Not open for further replies.

moepower

Programmer
Oct 5, 2000
93
US
I have two large text files that I need to do a comparison off. I know that the "diff" command can be used to display the differences but don't know if it will be able to handle this.

File 1 - approx. 1 million records
File 2 - approx. 800 thousand records

1. I need records in File 1 but not in File 2 stored to another file.

2. I need records in File 1 but not in file 2 or in File 2 but not in File 1 stored to a file.

Thank you
 
You might run up against problems with the size of the files, but take a look at the man page for comm and use it with redirection. HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top