Search Results

Search: Posts Made By: sudhir_83k
6,952
Posted By sudhir_83k
Hi, Thanks Micheal. It is working fine.
Hi,

Thanks Micheal.
It is working fine.
6,952
Posted By sudhir_83k
It is comming out when we donot find a file
Hi,

the code that i pasted in my previous posts works fine ,if all files are existing.if any file is missing it is comming out.

but my requirement is,it should go to next file and grep the...
6,952
Posted By sudhir_83k
Hi, Thanks Micheal, For the point-2: ...
Hi,

Thanks Micheal,

For the point-2:

once the cd command is executed then i can grep the files in the directory.As the directory is not changing i am not able to grep and it says can't...
6,952
Posted By sudhir_83k
Thanks Micheal. How can we tuncate the...
Thanks Micheal.

How can we tuncate the information i.e

drwxrwsr-x 2 tia uniqgrp 12288 10 Oct 00:30 CSB.Oct10_00:01/

i need to get only the directory name i.e CSB.Oct10_00:01...
6,952
Posted By sudhir_83k
hi Guy's Thanks for the help. i changed...
hi Guy's

Thanks for the help.
i changed the code accordingly.
but i am facing the below error message.

>./ora_error.sh
./ora_error.sh[6]: cd: bad argument count
grep: can't open...
6,952
Posted By sudhir_83k
Help me in shell scripting
Hi,



#catr.ksh
#!/bin/ksh

v=""
a=ls -ltrd CSB.*|tail -1
cd a
rm oraerr_output.txt
for j in 1 2 3 4 5
do
v="THerrFile_$j.err";
grep -i "$j:Error" $v >>oraerr_output$j.txt
cat...
1,866
Posted By sudhir_83k
hi
hi,

#cat var.ksh
#!/bin/ksh

v=""
for j in 1 2 3 4 5
do
v="THerrFile_$j.err";
grep -i "$j:Error" $v >>oraerr_output$j.txt
done

the above code worked
but my requirement in open a...
1,866
Posted By sudhir_83k
Problem in loops in shell scripting
Hi,

#!/bin/ksh

$v=""
for ((i = 1 ; i <= 5 ; i++ ))
do
v="THerrFile_$i.err";
grep -i "$i:Error" $v >>oraerror_output.txt
done

My requirement is...
1,423
Posted By sudhir_83k
[Solved] help me in this looping in shell scripting
Hi,

#!/bin/ksh
result='/TIA/app/UniQP/queue/document/CSB'
i=0;


while [ $result="0000" ] ;
do
i=`expr $i + 1`
if ($i -lt 5);then
...
6,952
Posted By sudhir_83k
Hi, thanks Bakunin. The problem is...
Hi,

thanks Bakunin.

The problem is that there is a log file CSB_control.log this comes up as the latest file.
if i am using ls -ltrd CSB*|tail -1

so the latest directory is not comming....
6,952
Posted By sudhir_83k
Find the latest directory and loop through the files and pick the error messages
Hi,

I am new to unix and shell scripting,can anybody help me in sctipting a requirement.

my requirement is to get the latest directory the name of the directory will be like CSB.monthdate_time...
Showing results 1 to 11 of 11

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