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
need assistance: sed and repeating patterns metalwarrior UNIX for Advanced & Expert Users 1 02-02-2008 01:00 AM
including shell env variables into C code bdsffl High Level Programming 4 01-26-2007 12:06 PM
Repeating commands in a script Dave2874 Shell Programming and Scripting 4 03-14-2005 06:34 AM
Filter out repeating messages antalexi SUN Solaris 2 01-31-2005 10:19 AM
repeating kernel message progressdll UNIX for Advanced & Expert Users 2 07-29-2002 01:18 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2007
Registered User
 

Join Date: Nov 2006
Posts: 38
Repeating variables in the code

Hi all,
I had written 3 KSH scripts for different functionalities. In all these 3 files there are some 30 variables in common. So I want to reduce the code by placing these variables in a common properties file named (dataload.prop/dataload.parms/dataload.txt) or txt file and access it in the 3 programs from one program.

Please do tell me how to call that properties file from a ksh program.

Thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-08-2007
radoulov's Avatar
addict
 

Join Date: Jan 2007
Location: Milan, Italy/Varna, Bulgaria
Posts: 1,542
Code:
. /path/to/your/file/dataload.txt
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:04 PM.


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 Global Fact Book

Content Relevant URLs by vBSEO 3.2.0