Search Results

Search: Posts Made By: srilaxman
13,601
Posted By srilaxman
Processing variable values using awk
Hello,

I am using the command below to send emails to users using a for loop. If The command finds the user Id in 1st column then it will print the email Id of the user from the 2nd column.
...
3,787
Posted By srilaxman
How to check sub scripts execution?
I have a shell script which is used to get the input and have another shell script (a sub script) at the end of this shell script which is used to upload the inputs in the Oracle database. I can...
11,604
Posted By srilaxman
Function to get the current script name
I have a function to get the executing scripts name.

Script_nm() {
Parent=$( ps -f -p $PPID -o and | tail -l | sed -e 's/ *[bak]\{1,\}sh *//' | awk '{print $1}' )
If [ $parent = '-bash' ] ; then...
19,506
Posted By srilaxman
Space delimited variables
I have a shell script where I am using space delimited variables.
Var=" ${var} data1 table1 "
Var=" ${var} data2 table2 "
Var=" ${var} data3 table3 "
Var=" ${var} data4 table4 "

I am using a...
8,325
Posted By srilaxman
So, mount <filesystem name> <mount name> is the...
So, mount <filesystem name> <mount name> is the command
Am I right?
8,325
Posted By srilaxman
Mount Linux filesystem not defined in etc/fstab
Hello, is there a way to mount a filesystem which is not defined in the etc/fstab ? Could someone share me any code or command
9,716
Posted By srilaxman
I am not sure about it HD="Date" ...
I am not sure about it

HD="Date"
DT="$(/bin/date "+%Y-%m-%d")"
ON="output/path/file.txt"
FN="App_log_$DT_server"
TMP="Execution Complete "
for num in $servernums
do HD="$HD server${num}"...
9,716
Posted By srilaxman
Hi, I need a help again I wanted to add one more...
Hi, I need a help again I wanted to add one more column as TOTAL and I want the sum of all the values in the row to the value of column

server10 server 11 server12 Total
57 124 ...
9,716
Posted By srilaxman
It works. Thanks again!
It works. Thanks again!
9,716
Posted By srilaxman
The cvs file will look like Date ...
The cvs file will look like
Date server10 server 11 server12 server13
Today date 57 124 234 67

So, whenever I run the script the second row...
9,716
Posted By srilaxman
Great ! Both the code worked. Thankyou so much....
Great ! Both the code worked. Thankyou so much. Can you also help me with the code to append the output the as a row to the excel everytime when this script gets executed ?
9,716
Posted By srilaxman
Hi, this is my code TimeStamp=$(/bin/date...
Hi, this is my code

TimeStamp=$(/bin/date "+%Y-%m-%d")

for num in $(seq 10 16) 19; do
echo -n "server${num}: "
grep -n 'Execution Complete ' App_log_${TimeStamp}_server${num}* | wc -l
Done >...
4,829
Posted By srilaxman
For loop output to excel file
Hi, I have a shell script which analyses the log folder for a specific string and throws me the output. I have used for loop since it does this in multiple servers. Now I want to save the output in a...
9,716
Posted By srilaxman
Shell script, For loop output to excel as columns
Hi, I have a shell script which analyses the log folder for a specific string and throws me the output. I have used for loop since it does this in multiple servers. Now I want to save the output in a...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 04:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy