Unix/Linux Go Back    

Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

Compare two files in UNIX

Shell Programming and Scripting

Closed Linux or Unix Question    
Thread Tools Search this Thread Display Modes
Old Unix and Linux 02-20-2013
babu92 babu92 is offline
Registered User
Join Date: Feb 2013
Last Activity: 20 February 2013, 9:08 AM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Compare two files in UNIX

I have requirement to compare two files in unix. Below are the sample files.



I want to compare file 1 with file 2. If it matches i wan to move it different file otherwise i want to move different file? Any Ideas?
Sponsored Links
Old Unix and Linux 02-20-2013
DukeNuke2's Unix or Linux Image
DukeNuke2 DukeNuke2 is offline Forum Staff  
Join Date: Jul 2006
Last Activity: 29 November 2015, 6:57 PM EST
Location: Berlin, Germany
Posts: 5,541
Thanks: 63
Thanked 259 Times in 251 Posts
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Compare two files in UNIX forums123456 Shell Programming and Scripting 4 08-02-2011 10:21 PM
How to compare two files using UNIX? gpsridhar UNIX for Advanced & Expert Users 6 10-22-2010 04:19 AM
how can i unix compare two files?? nirnir26 UNIX for Dummies Questions & Answers 2 11-19-2009 07:52 AM
Unix Compare Files Lagre1 UNIX for Dummies Questions & Answers 2 12-11-2008 02:19 PM
UNIX; Compare two files abhishek3598 UNIX for Advanced & Expert Users 1 11-06-2007 06:52 PM

All times are GMT -4. The time now is 12:25 AM.