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
Expect script with file input problems meberline Shell Programming and Scripting 1 05-29-2008 05:40 PM
input from a file into an expect script ? starsky Shell Programming and Scripting 2 04-16-2008 12:38 PM
Script for reading an input file gzs553 Shell Programming and Scripting 1 10-17-2006 07:55 AM
Find script with input pattern file iguanathompson Shell Programming and Scripting 8 02-06-2006 06:23 PM
file as input for script finster Shell Programming and Scripting 1 11-11-2004 06:27 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 10-23-2007
innocentspirit innocentspirit is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 10
Post File as input for a script

A newbie here, so please excuse my ignorance.....

I have a Master_file.txt whose contents will change every week.....basically gives a difference of the contents of a baseline.....on a weekly basis.....

Master_File.txt -> Week1
------------------------

A3 A1
D8 D6
T4 T3
.
.
.


Next week the file might look like this.....

Master_File.txt -> Week2
------------------------

A5 A3
B6 B5
N5 N4
T5 T4
.
.
.


I execute a customised diff script for each of the difference found in this Master_File.txt every week.

So for Week1; I would execute

A3 diff A1 > A_Result.txt
D8 diff D6 > D_Result.txt
....

for Week2; I would execute

A5 diff A3 > A_Result.txt
B6 diff B5 > B_Result.txt
....

Now my question, I need a script which will pick up whatever is in the Master_file.txt as input every week in spite of the obvious changes(sometimes it could be only a version change, sometimes there could be a new object) and then execute my customized diff script against each of the listed objects.

Would anyone know how to achieve this?

Any help appreciated......

Thanks
 

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 12:56 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