[Solved] Unable to fetch the UNIX variable information
I am having a file called variable_info.ksh in that file I am having following global variable information like…
And we are having another temporary parameter file abcd.txt, in that file we are having the following information like…
I am writing a shell script and using the abacd.txt file searching for EMAIL word and picking up the “EMAI_PATH”
Inside my I am executing variable_info.ksh script to fetch variable information.
Steps included in my scripts are..
Then I am getting the “EMAI_PATH”
But I want to fetch the EMAIL_PATH information by looking abcd.txt file.
Whenever I do get the value of TMP_VAR_INFO= EMAI_PATH
I want to get the value as /var/mail.
Can you anyone please help me regarding this scenario.
Last edited by vbe; 09-04-2013 at 05:31 AM..
Reason: rm font tags +added code tags
Hi All,
unable to fetch the bios configuration information and service provider information in centos 5 using dmidecode command.
ServiceProvider=`dmidecode -s system-product-name |awk '{print $1}'`
BIOS_Configuration=`dmidecode | grep "BIOS Information" -A10 | grep -e... (4 Replies)
Input.txt
NOTE1|VALUE1|HMM|UPSTR|
NOTE2||HMP|UPSTR|
NOTE3|VALUE3|HML|UPSTR|
NOTE4||HMD|UPSTR|
NOTE5|VALUE5|HMS|UPSTR|
NOTE6|VALUE6|HSD|UPSTR|
NOTE7||HSS|UPSTR|
NOTE8|VALUE8|HEE|UPSTR|
NOTE9|VALUE9|HER|DOWNSTR|
NOTE50|VALUE1|HEE|DOWNSTR|
I am trying to read field 1, 2 and 3 from the... (4 Replies)
Hi Gurus,
I am stuck with the step where i need to fetch the location & sales from the below procedure by taking it from table field using the for loop. any idea how this can be done in unix. From one column both the location and sales are taken out.
create or replace procedure newyork... (2 Replies)
Dear Experts,
I need your help here. I have lot of teradata DDL's as follows, i want to extract field names , field attributes and NOT NULL information from DDL.Could you please help here.
Sample DDL:
CREATE MULTISET TABLE APS_CALL_IN_PICKUP_CANCELED ,NO FALLBACK ,
NO BEFORE... (2 Replies)
I need to grab information from the output of the ps command.
For each line of ps output that contains _progres -b I need to get the word that follows -p. The "-p" can be anywhere after "_progres -b".
Using grep to select the correct lines is no problem (e.g. ps -ef|grep "_progres \-b|grep -v... (3 Replies)
Hi,
I have a variable which stores file names as a result of find command. I need to delete all these files one by one, i.e. by a loop. Can anyone tell me how can it be done?
The variable f2d has the file names like these
abc.txt
bcd.txt
fff.txt
gef.txt
Now I have used a loop as... (12 Replies)
Hi all,
From the below file I need to fetch the data in the below output format.
ToolInstanceID "diw_dm_sales"
Identifier "Sales_source_load"
Promt Default ParamType ParamLength ParamScale
"Database_Name" "ORCL" "0" "0" "0"
Identifier "retail_source_load"
Promt Default... (4 Replies)
Hi Guys,
I have written a script that declares all the variables and its values in a conf file.
Now i use a variable whose value i need to change it in one of the sub-file that is used in the script.
In the startup file i want to print or check its value.
The value get changed and printed... (5 Replies)
Hi,
I am trying to execute this command
if ; then
but getting error .Some problem with reteriving the value of $exception_info.
Please help.Its urgent.
thanks (4 Replies)
Hi,
I want to get the value of the first field till space in a variable.
e.g x=323 /test/personel/logs/File1
I want to get the first field till space i.e 323 in another variable ,lets say y.
echo $x|cut -d' ' -f1 gives 323
but when I'm trying y=`echo $x|cut -d' ' -f1 its giving... (3 Replies)