Search Results

Search: Posts Made By: steve2216
6,528
Posted By steve2216
Hi Kesavan, Can you pls explain your below...
Hi Kesavan,

Can you pls explain your below script? thanks

#!/bin/sh
sed -n '/[0-9][0-9]\/[0-9][0-9]\/[0-9][0-9][0-9][0-9]/p' time.txt | sed -e 's/ /./' -e 's/\//./g' > time_stamps.txt...
6,528
Posted By steve2216
Thanks Kesavan !!!!! Its working fine now.....
Thanks Kesavan !!!!!

Its working fine now.. :b:

Tanks a lot.. :)

Steve
6,528
Posted By steve2216
Thanks kesavan .. Its working fine.. But one...
Thanks kesavan .. Its working fine..

But one small bug is thr.. its taking the current timing content..

Ex: If now system time is 14:10. script should grep content between 13:30 to 14:00
...
6,528
Posted By steve2216
Hi Kesavan, Pls telme where you mention the...
Hi Kesavan,

Pls telme where you mention the input file in your script?

Thanks

Steve
6,528
Posted By steve2216
Hi rdcwayx, You gave me the below script.....
Hi rdcwayx,

You gave me the below script.. its greping only the mentioned time. but i want to do the same for all the hours in default.

Pls help


awk '/29\/09\/2010 01:00/,/userAttr/'...
6,528
Posted By steve2216
Pls somebody help on this issue.. Thanks...
Pls somebody help on this issue..


Thanks in Advance.

Regards,
Steve
6,528
Posted By steve2216
Exactly ... but i want to grep the content...
Exactly ... but i want to grep the content between 00:00 to 00:30 hours...
next 00:30 to 01:00
01:00 to 01:30
01:30 to 02:00 etc...

you are correct !!

Pls help !!
6,528
Posted By steve2216
Hi, I mean .. i want to take the content...
Hi,

I mean .. i want to take the content between the timestamp of every half an hour and put it into new file.

Hope u understand.

Thanks

Steve
6,528
Posted By steve2216
Hi rdcwayx, I want to take the output for...
Hi rdcwayx,

I want to take the output for every half an hour .. and i want to put script in crontab also.. i'm using solaris system.

Pls help !!

Thanks

Steve
6,528
Posted By steve2216
Grep content between timestamp
Hi all,

I have a file which will be updated every half an hour and time stamp will be printed in the beginning of the updation. i just want to grep the content between every hoalf an hour.

Pls...
2,413
Posted By steve2216
check files updation
Hi All,

Can anyone help to write the script to check files updation?

i have files as mentioned below. which will be updated some time.

i just want to check the last file is updating the data...
26,479
Posted By steve2216
HI frans, Thanks you. Its working fine....
HI frans,

Thanks you.

Its working fine. can u pls explain the code?

Thanks

Br
STEVE
26,479
Posted By steve2216
Hi rdcwayx, Still i'm getting some error.....
Hi rdcwayx,

Still i'm getting some error.. can u correct it pls ?

Thanks !

bash-3.00$ /usr/xpg4/bin/awk ps -ef | awk '/bluSCCP[1-3]/||/bluRBSS/||/blusnmmp/ {a++} END {print (a==5)?"OK":"NOT...
26,479
Posted By steve2216
Hi frans, Your script is working fine.....
Hi frans,

Your script is working fine.. thanks.

But its showing multiple "OK" for all process. my requirement is if all process running just print only one "OK" , other wise print only one NOT...
26,479
Posted By steve2216
Hi rdcwayx, i'm getting error like below i...
Hi rdcwayx,

i'm getting error like below i mentioned.

Important: if anyone the process is not running means i want to print NOT OK also.

bash-3.00$ ps -ef | awk...
26,479
Posted By steve2216
ps -ef | grep "string1" "string2" " "string3"
Hi all,

can any one suggest me the script to grep multiple strings from ps -ef

pls correct the below script . its not working/

i want to print OK if all the below process are running in my...
3,893
Posted By steve2216
Dear Scrutinizer, Thank you so much.. it...
Dear Scrutinizer,

Thank you so much.. it working fine..

Thanks

Br//
Steve
3,893
Posted By steve2216
Hi rdcwayx, pls check the below script is...
Hi rdcwayx,

pls check the below script is correct?

its not working. pls help !!!!!

#!/usr/xpg4/bin/awk
tm=`TZ=GMT date +%H`
awk '/^$tm:/{print;getline;print}' af02_alarm_log.31082010 >...
3,893
Posted By steve2216
Hi rdcwayx, awk...
Hi rdcwayx,

awk '/string/{print;getline;print}' filename
the above command it not working when we put in cron jobs in solaris server.

pls suggest me alter command for the same.


Thanks :)
3,893
Posted By steve2216
grep -A 1 "string" filename
Dear all,

can anyone pls provide equivalent of below code for solaris system.?

grep -A 1 "string" filename

the above command is working for Linux system. but i need same command for...
5,983
Posted By steve2216
hi Girija, I want to grep with respect to...
hi Girija,

I want to grep with respect to system timing .. not with files timing ..

could u help me?

thanks
5,983
Posted By steve2216
how to grep string from hourly basis files
dear all,

pls help on this script..

i have many files which will be created every mins in particular directory.

i want to grep a particular string from only for unique hour files.

from...
14,583
Posted By steve2216
Thanks kevin... i want to print only NOT OK...
Thanks kevin...

i want to print only NOT OK partition like below

ex:
/oracle is NOT OK, over 80% of its available space is used.
/export/home is NOT OK, over 76% of its available space is...
14,583
Posted By steve2216
Thanks kevin... its working yar..... thank u so...
Thanks kevin... its working yar..... thank u so much.. but its showing like this..

bash-3.00$ df -k | awk ' { p=substr($5,1,index($5,"%")-1); if(p+0>=50) print "NOT OK"; else print "OK" }'
OK
OK...
14,583
Posted By steve2216
kevin, .. its not working .. i tried with...
kevin,

.. its not working .. i tried with more awk versions. i'm getting same error in my solaris system,.

so.. could u modify below code.

#d=`df -k |awk '{print $5}' | egrep "[5-9][0-9]" |...
Showing results 1 to 25 of 33

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