Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Off topic: Unix Script Help Needed

Off topic: Unix Script Help Needed

From: Valiveru, Siva <SValiveru_at_ea.com>
Date: Mon, 15 Jan 2001 19:01:09 -0800
Message-Id: <10742.126724@fatcity.com>


All,
I need help in writing a Unix shell script , here is our requirement, my script looks for master config file say, master.conf having values of the pattern 'filename' and reads all the entries till end of file, for each entry in the master.conf there will be o/s file in the same directory and my script looks for the all the configuration values having the simple pattern name=value in that file, based on the name and value I am doing some processing. Can somebody there provide me a direction to how to achieve this,

logic flow is as follows,

myscript.sh

  1. Read master.conf file
  2. look for each detail config file for each entry in master.file, error out if detail config file is missing and loops for end of file.
  3. Read each line of the individual file till end of file and take 'name' into $NAME variable and 'value' to $VALUE variable, call another script with these values as input to that script.

contents of master.conf

file1.conf
file2.conf

contents of file1.conf

variable1=10
variable2=20

content of file2.conf Received on Mon Jan 15 2001 - 21:01:09 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US