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
Need help(sh script)--schell scripting shahidbakshi Shell Programming and Scripting 3 03-12-2008 02:00 PM
Need a little assistance with a shell script rickou812 Shell Programming and Scripting 3 02-04-2008 04:18 AM
creating reports using shell schell script complicated Shell Programming and Scripting 1 01-25-2008 08:33 PM
KSH Script Assistance Brusimm Shell Programming and Scripting 3 05-10-2007 09:15 AM
Perl script assistance; paste word into external command bru Shell Programming and Scripting 10 02-23-2007 04:04 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 02-21-2008
shahidbakshi shahidbakshi is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 10
Thumbs up need assistance ----SH schell script

Hello All,


I need to develop a script(SH]) to generate a comparison file between two files old and new file.The script takes in parameter the old file path and the new file path. And the script generates a file containing the comparison between the two files with this details:

- Keys added on the new file (key=value)
- Keys modified on the new file (key=value)
- Keys deleted on the new file (key=value)

key column is the 4th one and value column is the 6th one in the sample file.

Example:

old file: key1,value1 new file:key4,value3
key4,value4 key6,value6


output file: comparison file
------------------

1> keys added ----- key6,value6
2>deleted ---------- key1,value1
3> modified---------- key4,value3


I'm new to schell scripting field. request you to explain briefly along with the code. any sort of assistance would be appreciated.
Thanks in advance


Regards Shahid.
 

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 06:31 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