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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Retrieve data from a file tpltp Shell Programming and Scripting 2 03-28-2008 01:36 AM
how to retrieve a particular character from a file? singalla UNIX for Dummies Questions & Answers 1 02-27-2008 06:05 AM
How to retrieve a particular line from a file vinayap UNIX for Dummies Questions & Answers 2 07-11-2007 11:16 AM
Retrieve message from file mpang_ Shell Programming and Scripting 5 02-02-2007 05:38 AM
retrieve timestamp associated with a file 2nilotpal UNIX for Dummies Questions & Answers 2 08-08-2002 03:23 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-17-2008
Registered User
 

Join Date: Mar 2007
Posts: 32
Post retrieve value from a file

hi
i have a cfg file,it contains
lpdma520.dev.ipc.us.aexp.com=SUBMCORE.REQUEST.FT
lpdma521.dev.ipc.us.aexp.com=SUBMCORE.REQUEST.FTREQ
lpdma522.dev.ipc.us.aexp.com=SUBMITSECUREFILEFLOW

i am retrieving the values using the function
RetrieveCfgvalue()
{
CFG_VALUE=`grep "$2=" $CONFIG_FILE_NAME | cut -d"=" -f2
eval "$1=$CFG_VALUE"
}

CONFIG_FILE_NAME="queuedetails.properties"

RetrieveCfgvalue lpdma520.dev.ipc.us.aexp.com lpdma520.dev.ipc.us.aexp.com

i am getting an error "line 1: lpdma522.dev.ipc.us.aexp.com=ESBUSCLT01,SUBMITSECUREFILEFLOW.SUBMCORE.REQUEST.FT,SUBMITSECUREFILEFLO W.NU.REQUEST.FT: command not found"

please help
Forum Sponsor
  #2 (permalink)  
Old 05-17-2008
Moderator
 

Join Date: Feb 2007
Posts: 1,618
Duplicate post, similar to this thread:

retrive value from a file

Thread close.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0