From oracle-l-bounce@freelists.org Tue Mar 2 07:46:11 2004 Return-Path: Received: from air189.startdedicated.com (root@localhost) by orafaq.com (8.11.6/8.11.6) with ESMTP id i22DkBt27156 for ; Tue, 2 Mar 2004 07:46:11 -0600 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air189.startdedicated.com (8.11.6/8.11.6) with ESMTP id i22DkBo27150 for ; Tue, 2 Mar 2004 07:46:11 -0600 Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1EC07394C99; Tue, 2 Mar 2004 08:46:47 -0500 (EST) Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 02 Mar 2004 08:45:41 -0500 (EST) X-Original-To: oracle-l@freelists.org Delivered-To: oracle-l@freelists.org Received: from mail.cybcon.com (mail.cybcon.com [216.190.188.5]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 6D0DF394BCC for ; Tue, 2 Mar 2004 08:45:38 -0500 (EST) Received: from dsl2-6 (dsl2-6.cybcon.com [208.186.116.6]) by mail.cybcon.com (8.11.6/8.11.6) with ESMTP id i22DnFH17108 for ; Tue, 2 Mar 2004 05:49:16 -0800 Subject: Re: ***** Parameter file in a shell script ***** From: Jared Still To: Oracle-L Freelists In-Reply-To: <20040302065604.12343.qmail@web21407.mail.yahoo.com> References: <20040302065604.12343.qmail@web21407.mail.yahoo.com> Content-Type: text/plain Message-Id: <1078234001.1181.10633.camel@poirot> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 02 Mar 2004 05:50:13 -0800 X-CyberConnectics-MailScanner2-Information: Spam/Virus Scanned at CyberConnectics X-CyberConnectics-MailScanner2: Found to be clean X-CyberConnectics-MailScanner2-SpamCheck: X-archive-position: 255 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: jkstill@cybcon.com Precedence: normal Reply-To: oracle-l@freelists.org X-list: oracle-l Please don't start a new thread by replying to another post and changing the subject line. Those of us using capable MUA's don't appreciate it. Instead, create a *NEW* thread by creating a new email to oracle-l@freelists.org. Jared On Mon, 2004-03-01 at 22:56, Oracle DBA wrote: > Hi All, > > I need an urgent help with a complex situation. I really appreciate > your help! > > I have a parameter file like this. > > unix> cat script.par > name=david > city=phoenix > job=(admin,manager) > admin_role=(calls,meetings,gusts) > manager_role=(meetings,workers) > age=60 > > I have to use the above parameters in a shell script. Since the number > of parameters are high I can't pass them as $1.. $10 etc in the > command prompt. Number of parameters in script.par can vary. > > In the shell script I need to read the values in script.par and assign > them to different variables as shown below! > > name=david > city=phoenix > job_1=admin > job_2=manager > > admin_role_1=calls > admin_role_2=meetings > admin_role_3=gusts > > manager_role_1=meetings > manager_role_2=workers > > age=60 > > Please let me know how to achieve this. I hope I am clear on my > questions. I appreciate your help. > > Thank you so much! > > Have a great day, > Sam > > > > ______________________________________________________________________ > Do you Yahoo!? > Yahoo! Search - Find what youre looking for faster. ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------