Search Results

Search: Posts Made By: intiraju
6,245
Posted By intiraju
getting previous day.
Hi,
i am developing a script for my project. In my script i need to check some conditions based upon some values. in that one value is the previous date. with the previous date i need to check and...
1,829
Posted By intiraju
hi Anbu23, thank you so much. it worked like a...
hi Anbu23,
thank you so much. it worked like a charm.

Thanks,
Raju
1,829
Posted By intiraju
printing lines to a file from a particular string
Hi,
A very Good Evening to All,
I am writing a script for my application. I have a file with 1000 lines. Among that 1000 lines i am searching for a particular string. And from that string i need to...
10,342
Posted By intiraju
Hi Thillai selvan, Thanks a bunch. it worked...
Hi Thillai selvan,
Thanks a bunch. it worked like charm...

Thanks
Raju
10,342
Posted By intiraju
grep two strings in a file..
Hello All,
I have a big file about 1000 lines. Now i am trying to grep a particular string and printing the lines from the string.

say for example in 500th line i have the date as "Mon Wed 14...
12,100
Posted By intiraju
Hi The above code dint work. Please see my...
Hi The above code dint work.

Please see my output below. The SUCCESS word has come twice in the log file. but when i am trying to mail that logfile, its coming in one line.
How to display it in...
12,100
Posted By intiraju
Please see RESULT STORED IN THE variable. Synch...
Please see RESULT STORED IN THE variable.
Synch happend before shutdown and the synch is SUCCESS for Affinity Database Startup happend after the split and the split is in SUCCESS State
12,100
Posted By intiraju
print multiple lines using the grep command.
Hi All,
Please find my piece of code below. I am trying to grep the word SUCCESS from $LOGFILE and storing in the grepvar variable. And i am placing that variable in a file. Now if i open the file,...
3,654
Posted By intiraju
Hi Thanks for the reply. I got a little...
Hi Thanks for the reply.

I got a little problem with the code.
i wrote the command you gave to me. but while i am trying to ececute to the script if says the syntax errro. and the line number it...
3,654
Posted By intiraju
comparing two times
Hi Good Morning all,

I have two dates and times in the beloe format.
1. 07/18/2009 03:45:49
2. 07/18/2009 03:46:41

i will grep these values from a file. Now my problem is i need to find...
26,901
Posted By intiraju
Hi It worked for me. now i am able to peform...
Hi It worked for me. now i am able to peform functions.

Thanks a lot.
26,901
Posted By intiraju
Thanks for you answer fpmurphy. You code...
Thanks for you answer fpmurphy.

You code is working but i got little problem.
The printf command is not working for the T. So i have modified your command littel bit. See the command i have...
26,901
Posted By intiraju
comparing two dates.
Hi I have yesterday date and todays date stored in two variables.

Today date is stored in variable -- testdate=`date +%m/%d/%Y`
I found the yesterday date and stored in variable --...
2,323
Posted By intiraju
hi not exactly. b=`grep "toeba0uu"...
hi not exactly.

b=`grep "toeba0uu" mail_log.log | awk '{print $2}'`
c=`grep "HP_nv6003ud" mail_log.log | awk '{print $2}'`

Here variable b have yesterday date and c have todays date.
Now...
2,323
Posted By intiraju
Hi Thanks for your reply. now i am able to...
Hi Thanks for your reply. now i am able to compare the dates.
But now i am trying to find the date less than one date. how to achive that.

Thanks in advance
2,323
Posted By intiraju
date format will be 07/09/2009 ----------...
date format will be 07/09/2009

---------- Post updated at 01:40 AM ---------- Previous update was at 01:37 AM ----------

i tried this its not working.
pleae tell me the other way
2,323
Posted By intiraju
compare dats in the shell script.
grep "HP_nv6005ud" mail_log.log | awk '{print $2}' >raju.log
if [ $? -eq 0 ]
then
grep "$testdate" raju.log
if [ "$ydate == $testdate" ]


Hi in the above script $2 gives rge today date....
1,970
Posted By intiraju
Hi Thanks for the reply. Please find the...
Hi Thanks for the reply.
Please find the requiremtn below.

Backup status at Tue Jul 7 03:30:07 EDT 2009 CMLP

Job Name Last Start Last End ST Run ...
1,970
Posted By intiraju
script for comparing the times.
Hi,
My below output file looks like this.

Backup status at Tue Jul 7 03:30:07 EDT 2009 CMLP
Job Name Last Start Last End ST Run Pri/Xit
____________________________ ____________________...
Showing results 1 to 19 of 19

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