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 02:36 AM
how to retrieve a particular character from a file? singalla UNIX for Dummies Questions & Answers 1 02-27-2008 07: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 06:38 AM
retrieve timestamp associated with a file 2nilotpal UNIX for Dummies Questions & Answers 2 08-08-2002 03:23 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-17-2008
Registered User
 

Join Date: Mar 2007
Posts: 34
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  
Old 05-17-2008
Moderator
 

Join Date: Feb 2007
Posts: 2,290
Duplicate post, similar to this thread:

retrive value from a file

Thread close.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:07 AM.


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

Content Relevant URLs by vBSEO 3.2.0