Below is the issue I am having.
Hi.
I need to parse file and assign some values to variables, right now i do like below
Code:
MYHOMEDIR=`awk '/Home/ {print $NF}' output.txt`
MYSHELL=`awk '/Shell/ {print $NF}' output.txt`
PRGRP=`awk '/Primary/ {print $NF}' output.txt`
SECGRP=`awk '/Second/ {print $NF}' output.txt`
In this case, AFAIK, output.txt is being opened 4 times.
Hi All,
Can anyone give me Shell script sample script to generate Param file by Reading Values from DQL Plus query and it should assign those values to variables like..
$$SChema_Nmae='ORCL'
Thanks in Advance... Srav...
Hi
I need some help to write generic shell script for the below log file
Requirement : Get some values from this log file and load them into one stats tables
1. Initializing session time (it will be available in first line) it is start time of the the job.
2. Target Load Summary variables like Table name, Output Rows, Affected Rows, Applied Rows, Rejected Rows.
Hi, there
I have a file with tab and space as field separator. I need to assign values to variables then work with them, line by line. The code I wrote only works when each line has only one word.
1. The problem statement, all variables and given/known data:
Hello!
I need help with this problem bash shell scripting that basically just reads the data in a tab delimited file and does the following below
1. Read in the data file Survey.txt and assign the column values to variables of your choosing.
2. Calculate the total number of survey respondents.
3.
Hello all.
I have a script that uses two arrays in the beginning. Saves certain values that i am extracting from df -h command.
array1[i] and array2[i] where i is from 0 to 9.
It then goes on and saves the values of the arrays into variables.
for i 0 to 9 , tmp= array2[i] // I am no writing the exact syntax here.
I have a shell script that exports values of variables when executed. The same values will be used in another script.
How to run this script(test.sh) in cron.
#!/bin/sh
export I="10"
echo $I
I will be using root access for cron.
I tried this command :
*/5 * * * * /home/ubuntu/backup/.test.sh
I checked with environment variables, nothing is updated.
I am new to ksh scripting, specially array.