The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
need help extracting this part finalight Shell Programming and Scripting 6 05-20-2008 07:03 AM
program to find the uncommon numbers between two files. salaathi Post Here to Contact Site Administrators and Moderators 2 10-31-2007 08:52 AM
Extracting part of a string sam_78_nyc Shell Programming and Scripting 8 04-25-2007 08:37 PM
Extracting part of the basename madhunk Shell Programming and Scripting 3 02-13-2007 11:54 AM
extracting .rar files sskb UNIX for Dummies Questions & Answers 5 05-15-2002 10:20 PM

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 11-06-2005
sabyasm sabyasm is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 27
extracting uncommon part between two files

Hi,

I need to extract the uncommon (better say incremental) part from 2 files say file_1 and file_2.

file_2 contains everything that is in file_1. That is file_2 has been created internally somehow :

cat file_1 temp_file > file_2

My objective is to extract the temp_file part from file_2. Both file_1 and file_2 are available.

Any Help ?

~
Thanks in advance
  #2 (permalink)  
Old 11-06-2005
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,233
either diff or comm could be used to do that quite easily.
  #3 (permalink)  
Old 11-06-2005
sabyasm sabyasm is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 27
Thumbs up

Thanks a lot!
My requirement can be achieved thru :

comm -3 file_1 file_2
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 09:44 PM.


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