Search Results

Search: Posts Made By: lakshmikanthe
32,777
Posted By lakshmikanthe
lots of thanks Chirel :cool:. atlast, my script...
lots of thanks Chirel :cool:. atlast, my script working fine without Errors. ;)
32,777
Posted By lakshmikanthe
sorry, #!/bin/bash str=$(ps -eaf...
sorry,



#!/bin/bash

str=$(ps -eaf | grep smon | grep -v grep | awk ' {print $8}' | cut -c10-18)

inc=1

while [ 1 ]
do
temp=`echo $str|awk '{print $"'$inc'"}'`
if [...
32,777
Posted By lakshmikanthe
It solved. But when I am storing var_$iamnoti...
It solved. But when I am storing var_$iamnoti its just storing as var_1,var2. not real values

for ((j=1;j<$i;j++)) do export ORACLE_SID='$'var_$j source $HOME/.bash_profile ...
32,777
Posted By lakshmikanthe
okey fine. what can i add to my code to...
okey fine. what can i add to my code to successful execution of my script.

---------- Post updated at 03:23 PM ---------- Previous update was at 10:03 AM ----------

any one their to help me...
32,777
Posted By lakshmikanthe
i 've already written, str="TEST...
i 've already written,

str="TEST LAK";
32,777
Posted By lakshmikanthe
no, check it in While loop, first it is assigned...
no, check it in While loop, first it is assigned to 1 and incremented in while loop according to input of str.
32,777
Posted By lakshmikanthe
operand expected (error token is "<")
Hi, i am getting error from below script.

Error: s1.sh: line 19: ((: j<: syntax error: operand expected (error token is "<")



#!/bin/bash

str=$(ps -eaf | grep smon | grep -v grep | awk '...
2,630
Posted By lakshmikanthe
Thanks, Problem solved.
Thanks, Problem solved.
2,630
Posted By lakshmikanthe
It work fine with more than 2 parameters, if i...
It work fine with more than 2 parameters, if i gave only 1word i.e str="first". it stucked
2,630
Posted By lakshmikanthe
Hi, i am DBA, This is my scenario, ...
Hi,

i am DBA, This is my scenario,
first we have to check how many databases are running in a server..
secondly which database user havn't logged in from last week.

If i have two...
2,630
Posted By lakshmikanthe
no no. my intention is to store string to...
no no.

my intention is to store string to variables. Is there any command in shell script that i can get only first word in string.

Thanks for reply
2,630
Posted By lakshmikanthe
if what is the case user gives three word...
if what is the case user gives three word sentence????

eg: how are you
2,630
Posted By lakshmikanthe
string into variables
Hi,
i am new to Shell Scripting, i want to get some input from user which is string, and i want to store it into variables.

Eg:

str='hello how are you'

i want to store this string...
Showing results 1 to 13 of 13

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