Search Results

Search: Posts Made By: tapia
16,224
Posted By tapia
Print awk output in same line ,For loop
My code is something like below.
#/bin/bash
for i in `ps -ef | grep pmon | grep -v bash | grep -v grep | grep -v perl | grep -v asm | grep -v MGMT|awk '{print $1" "$8}'`
do
echo $i...
1,987
Posted By tapia
Thanks bartus11 , It really worked.
Thanks bartus11 , It really worked.
1,987
Posted By tapia
Remove last few words from Line
Hi I would like to remove last few words from File

Could anybody Help on it.

ps -ef | grep mgr.prm | awk '{print $10}'
/opt/app/dummyd/xyz/dirprm/mgr.prm
/opt/app/dummy/xyz/dirprm/mgr.prm...
3,723
Posted By tapia
Grep Exact word
This may be stupid question but not able to solve it.

How to grep exact word and line along with it.

TEST:/u00/app/oracle/product/10.2.0/TEST:N
TEST2:/u00/app/oracle/product/10.2.0/ODS:N...
2,140
Posted By tapia
Thanks , i remember you ..you helped me last time...
Thanks , i remember you ..you helped me last time .
2,140
Posted By tapia
If else continue to check value until it it is right
i have script which get Input via READ value and compare it from file.
when found do some stuff...if not found again ask for Input until you dont enter Right value.


#!/bin/ksh
echo "SID must...
15,607
Posted By tapia
Nested if else
Hi,

i m trying to create script which logic is like below.

if [ -s ${LOGFILE} ]; then
x=`cat /tmp/testoutput.log | grep STOP | wc -l`
y=`cat /tmp/testoutput.log | grep RUN | wc -l`
if [...
2,995
Posted By tapia
Redirect output of command line to for loop
I would like to redirect output of command line in for loop as $line.

Output should be processed as line but instead it throw whole output.

Could somebody help me on how to redirect output...
13,032
Posted By tapia
Thanks a lot for prompt reply I changed the...
Thanks a lot for prompt reply

I changed the code according it.

l_start_snapid=$3
let l_end_snapid=$4-1
i=l_start_snapid
while [ $i -lt l_end_snapid ]
do
let l_next_snapid=$i+1;...
13,032
Posted By tapia
for i in range ksh
Hi guys i have one handy script which is written in bash and it was using `seq ` , since we want to modified it to ksh script.

i have tried couple of tricks to work around
for i in $(x..y) ...
9,949
Posted By tapia
its something like this #!/bin/ksh for...
its something like this

#!/bin/ksh

for i in x do
y=$x+1

sqlplus -s @/mydir/xyz.sql
(inside this xyz.sql script it ask few values. at that time i want to provide $x $y to it)

since i...
9,949
Posted By tapia
I have sql script which called internally from...
I have sql script which called internally from shell ...

I cant change code of sql script which is provided by oracle itself.
9,949
Posted By tapia
Provide input in sqlplus script
Hi guys.


I m creating scripts which input multiple value , inside sqlplus script when it prompt/accept
do anybody know how to provide multiple value inside sqlplus script when it prompt.
...
8,344
Posted By tapia
format log file and send in email.
Hi guys i have one script which is as below

do
some sqlplus output in to $LOG
sed '/^$/d' $LOG > /tmp/job.log
mv /tmp/job.log $LOG
awk '{if ($5=="COMPLETED") {print "backup completed at "$3"...
3,828
Posted By tapia
if condition for files older then 24 hours in direc
Hi all

I have directory /tmp and i have logs are written in it every 18 to 20 hours in date format.

now i need write some if condition which can find which files came into /tmp dir with name...
11,751
Posted By tapia
Hey dear... Thanks a lot its worked fine as...
Hey dear...

Thanks a lot its worked fine as butter....

:)
11,751
Posted By tapia
Oracle Shell script | here document `EOF' unclosed
Hi folks

I m creating script which is give me below error.
[oracle@ scripts]$ ./function.ksh
./function.ksh[17]: here document `EOF' unclosed

Inside the script is

#!/bin/ksh
export...
4,414
Posted By tapia
awk pass $LOGDIR parameter
hi guys

i need your help , i wrote one script which is as below

#!/bin/ksh
###########################################################
LOGDIR=/export/home/xyz/logs...
7,783
Posted By tapia
No my friend i m just using solaris 9 ,,,,,
No my friend i m just using solaris 9 ,,,,,
7,783
Posted By tapia
grep only last occurred error in error.log,
hi folk i need your help to find one logic....

i have error log same as any other error logs which get populated by no of events and errors...

but i need to grep the last occured errors.....
3,630
Posted By tapia
thanks a lot tyler,,, happy fight club :)
thanks a lot tyler,,, happy fight club :)
3,630
Posted By tapia
complicated alias command
hi guys
i m making one alias which will set variable , invoke sqlplus and also set prompt of sqlplus,,i have made successfully upto invoking sqlplus in unix but cant pass command in sqlplus ...
1,779
Posted By tapia
its not working as i do pwd i m still there...
its not working as i do pwd

i m still there

TEST2-> ./cd.ksh 1
TEST2-> pwd
/u01/app/oracle/admin/TEST/scripts
TEST2->

i m still there
1,779
Posted By tapia
problem with cd script
my shell is
TEST2-> echo $SHELL
/bin/ksh

i m at

TEST2-> pwd
/u01/app/oracle/admin/TEST/scripts

my script is

#!/bin/ksh
cd /u0$1/app

my goal is
when i do

TEST2-> ./cd.ksh 1...
Showing results 1 to 24 of 24

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