How to assign values to variable in given scenario
Hi i have one variable like DIR="f1 f2" in config file
in my script i have one runtime variable LFILE="DIR"
now i want to use $DIR in my script by using LFILE that is i dont want to use DIR dirctly i am extracting DIR by some other means.
Config file :
Script:
i want senario like List of files
if any clarity want ask question so that i can reert it back.
Last edited by Scrutinizer; 05-21-2012 at 03:22 AM..
i have a file in this format
curyymm PRVYYMM CDDMmmYY bddMmmyy eddMmmyy
--------- ------- ------------ ---------- -----------
0906 0905 09Jun09 01Jun09 30Jun09
----------- --------- ------------ ------------ -----------
i need to read the... (5 Replies)
I have a csv file with the values seperated by commas.I want to extract these values one by one and assign to a variable using shell script.Any ideas or code? (11 Replies)
Hi Masters,
I want to assign the values of one variable to another variable.
Here the varaible name 'var' is dynamic. I know the values of V_2 and U_3, but
If the i/p of TYPE is 'U' and the NO is 3, then I want to assign the values of
U_3 to var.
How we can achieve it?
TYPE="U"... (4 Replies)
Hi,
I have a text file with multiple lines, each having data in the below format
<DOB>,<ADDRESS>
I have to write a script which reads each line in the text file in loop, assign the values to these variables and do some further processing in it.
Using the following code prints the... (1 Reply)
Hi,
I have a text file with multiple lines, each having data in the below format <DOB>,<ADDRESS>
I have to write a script which reads each line in the text file in loop, assign the values to these variables and do some further processing in it.
Using the following code prints the values... (12 Replies)
I have a log file that has certain fields that I want to evaluate, and depending on the value in those fields, I want to put the value of a different field in that line in a particular variable that I'll use later on down the log file. Sort of like setting a switch to change what I do with a bunch... (5 Replies)
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need to read this file which is an input to my script
Config.txt
file name, first path, second... (7 Replies)
Hi All,
I wrote a database command that queries our application and outputs a whole bunch of values to a text file. I need to assign the output to two values.
Here is a sample of the output:
valueOne, checkOne
valueTwo, checkTwo
valueThree, checkThree
I would like... (9 Replies)
Hello,
Could anyone please help me with Assigning a value to variable and then updating the value in the original file
IFS='|'
while read -r Serial_ID JOB_NAME STATUS
do
if
then
echo "Perform Fuctions"
???Assign STATUS to COMPLETED and Update File???
done <File (7 Replies)
Hi Gurus,
I have a script which assign awk output to shell variable. current it uses two awk command to assign value to two variables. I want to use one command to assign two values to two variables. I tried the code, but it does't work. kindly provide your suggestion.
current code... (2 Replies)
Discussion started by: green_k
2 Replies
LEARN ABOUT DEBIAN
gdome-config
GDOME2(1) 0.8.1 GDOME2(1)NAME
gdome-config - script to get information about the installed version of gdome2
SYNOPSIS
gdome-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--libs] [--cflags] [--version] [--help]
DESCRIPTION
gdome-config is a tool that is used to determine the compile and linker flags that should be used to compile and link programs that use
gdome2.
OPTIONS
gdome-config accepts the following options:
--version
Print the currently installed version of gdome2 on the standard output.
--libs Print the linker flags that are necessary to link a gdome2 program.
--cflags
Print the compiler flags that are necessary to compile a gdome2 program.
--prefix=DIR
If specified, use DIR instead of the installation prefix that gdome2 was built with when computing the output for the --cflags and
--libs options. This option must be specified before any --libs or --cflags options.
--exec-prefix=DIR
If specified, use DIR instead of the installation exec prefix that gdome2 was built when computing the output for the --cflags and
--libs options. This option must be specified before any --libs or --cflags options.
--help Print a short help text and exit.
AUTHOR
This manual page was added by Enrico Zini <zinie@cs.unibo.it> for the Debian GNU/Linux system (but may be used by others). The page was
made editing the manpage written by Fredrik Hallenberg <hallon@lysator.liu.se> for the libxml2 Debian GNU/Linux package.
Version 3 December 2001 GDOME2(1)