Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Compare two files in UNIX

Shell Programming and Scripting

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: 23 October 2017, 6:31 AM EDT
Location: Berlin, Germany
Posts: 5,698
Thanks: 73
Thanked 302 Times in 288 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

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 09:21 PM
How to compare two files using UNIX? gpsridhar UNIX for Advanced & Expert Users 6 10-22-2010 03:19 AM
how can i unix compare two files?? nirnir26 UNIX for Dummies Questions & Answers 2 11-19-2009 06:52 AM
Unix Compare Files Lagre1 UNIX for Dummies Questions & Answers 2 12-11-2008 01:19 PM
UNIX; Compare two files abhishek3598 UNIX for Advanced & Expert Users 1 11-06-2007 05:52 PM

All times are GMT -4. The time now is 01:53 AM.