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
Break a file into separate files chiru_h Shell Programming and Scripting 8 07-29-2008 04:06 AM
(awk) compare files in dir with an index file xthexonex Shell Programming and Scripting 4 02-21-2008 02:43 AM
to compare two files and to print the difference cdfd123 Shell Programming and Scripting 5 10-06-2007 05:55 AM
compare 2 file and print difference in the third file URG PLS evvander Shell Programming and Scripting 3 09-24-2007 07:52 AM
How to compare the difference between a file and a folder?? kumarsaravana_s UNIX for Dummies Questions & Answers 2 03-22-2007 03:07 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-19-2006
kirankumar kirankumar is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 1
Thumbs up compare two .dat files and if there is any difference pulled into a separate file

Hi,
compare two .dat files and difference will be moved into separate file.if anybody having code for this please send asap. using diff command, i don't know how to write shell programming.
and my first file is like this including Header and trailer
10Ç20060323Ç01(Header)
01ÇIÇbabuÇ3000
01ÇIÇbaluÇ4000
99Ç04--trailer ,04 is - count the records

and second file is like this

10Ç20060324Ç01
01ÇbabuÇ3000
01ÇbaluÇ4000
01ÇkumarÇ8000
99Ç05---record count(5)

and the difference must be

01Ç20060324Ç01
01ÇkumarÇ8000
99Ç03--record count(3).-- here if difference file is like this how can we count the number of records including header and trailer.


Please let me know if anybody face above problem and implement successfully. could you please send the shell programming script. its very urgent to my project.

thanks in advance
 

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 02:45 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