The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk - comparing files dbrundrett Shell Programming and Scripting 6 01-18-2009 10:51 PM
Comparing two files superstar003 Forum Support Area for Unregistered Users & Account Problems 1 05-08-2008 04:34 AM
Comparing two files.. padarthy Shell Programming and Scripting 1 08-29-2007 09:01 AM
Comparing two files... paqman Shell Programming and Scripting 12 08-08-2007 04:45 AM
comparing shadow files with real files terrym UNIX for Advanced & Expert Users 4 02-09-2007 02:38 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-08-2008
superstar003 superstar003 is offline
Registered User
  
 

Join Date: May 2008
Location: Chennai
Posts: 3
Red face Comparing two files

Hi

I have two files X and Y. I have to compare two files and dispaly the lines which are present in X and not in Y along with the line numbers

ex

X Y

a a
b b
c g
e

output Z

3. c

Thanks
  #2 (permalink)  
Old 05-08-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,346
This is a vague question and smells like homework. If it isn't, what is the "real world problem" of your question and what have you done to attempt to solve this problem yourself? Post your sample script, and we'll see how we can assist.

Regards
  #3 (permalink)  
Old 05-08-2008
ludwig ludwig is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 8
Try diff or sdiff
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




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


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0