The following is done to fliter update file and copy the files to another directory.
But I have the problem.When it runs to the line 13, it show me the error message 'Invalid argument to date encode'!
Why? Anybody knows?
Thanks!
1. procedure TForm1.Button1Click(Sender: TObject);
2 var i...
Sorry,my english is poor.
Thank you James&John's suggestion.
I try to explain clearly.
For example,when
"UNIT_POINTER"=4 then "UNIT_VALUE"=2,
"UNIT_POINTER"=9 then "UNIT_VALUE"=5,
"UNIT_POINTER"=283then "UNIT_VALUE"=7,
I want answer...
I have the question as following:
The field "UNIT_VALUE" and the field "UNIT_POINTER" are in the table "UNIT".
Now, i have to select "UNIT_VALUE" when {"UNIT_POINTER" = 4 and 9 and 283}.
I want to got last answer is multipling by the above three...
Hi godcomplex,
Thanks for your suggestion. I tried to set up what you said. But it failed. Could you help me where the mistake is?
I set up two environment variables in the Control Panel :
variables value
CLASSPATH...
Hi,I am a new to java. Recently,I was in trouble with using JDBC Driver for SQL Server2000.
The problem is that I have downloaded SQL2000 JDBC Driver:mssqlserver.jar;msbase.jar;msutil.jar and I set it at C:\j2sdk1.4.0_02\lib. But I don't know how to set the classpath. Did it modify in...
Hi Daedelus,
Sorry,the program was a little bit difficult to me. I don't understand from line three($1 % 4...) through the bottom. Could you explain to me if you have time? Thank you very much!
piggy
Hi,Daedelus
Yes, I was trying to do something different than before and was requested by user. I'm sorry aboout confusing you last time. This time I will try to explain clearly as soon as possible.
This time I still find out yesterday' messages which is different format than before.
If the...
Hi Everybody:
I have a question
This is my program:
#!/bin/csh -f
set month = `date +%b`
set day = `date +%e`
@ yesterday = $day - 1
set yes = $yesterday
if ($yes == 0) then
if ($month == Jan) then
set month = Dec
set yes = 31
endif
if ($month == Feb) then
set month...
Hi Daedelus:
This is my program:
#!/bin/csh -f
set month = `date +%b`
set day = `date +%e`
@ yesterday = $day - 1
set yes = $yesterday
if ($yes == 0) then
if ($month == Jan) then
set month = Dec
set yes = 31
endif
if ($month == Feb) then
set month = Jan
set yes...
Hi Daedelus,
Today I tried the same program which you wrote, it could't work. Not all couldn't execute, just the date condition has something wrong. If I used the program you wrote, it show me the following messages:
env: No such file or directory
env: No such file or...
Hi Daedelus,
Thank you very much.
May I ask you questions?
1) Why you write date="" behind the BEGIN?
2) $2 == '$tomonth' && $3 == '$today' {exit} --> The line I don't understand. If the field number 2 and 3 is equal to today's month and date(Oct 1) then exit. Why? If other...
Hi Grant,
I extremely appreciated your help.
Today I tried the program "log.awk", it could work only in awk environment. If I added it in C shell, it couldn't work. Because it has to be write like this:
#!/bin/csh
nawk -f log.awk log.txt
So thank you very much.
piggy213
Hi Daedulus,
Thanks for your help.
I was forced to use C shell. So about the "yesterday" point I used the stupid way to calculate it.
This is the original file:
Mon Sep 30 02:02:23
ORA014:normal 23455.....
Mon Sep 30 09:31:21
ORA012:normal 23456...
Hi marsd and Grant,
I appreciated your helps.
May I ask another questions?
1).The top of the program which you wrote was "#!/usr/bin/awk -f" , could I add "#!/bin/csh -f" ?
2).Or csh had already include awk? So I could only write "#!/bin/csh -f" in the program...
Hi Grant,
You are so kind.
Thanks your suggestion.
I am a new to awk and C shell.
May I ask you some questions?
Q1.Should I set array about this part?(But I don't know how many lines in today's message,it's the active and unknown log.)
Sat Sep 28
ORA123: error in xxjob
ORA124...
If I have a file like this:
Sat Sep 28
ORA123: error in xxjob
ORA124: 12345 in xxjob
Sun Sep 29
ORA123: error in xxjob
ORA124: 12346 in xxjob
I wanted to choose today's error message line like:
Sun Sep 29
ORA123:error in xxjob
I can filter today this condition but I...
Sorry,my english is poor.
I describe my question clearly as soon as possible.
Does anybody know how to use nawk in C shell to search two fields by two variable and print it?
eg.
If I set two variable $m and $d from month and date and they are field two and field three in file.
nawk...
Sorry,my english is poor.
I describe my question clearly as soon as possible.
If I have a text file like this:
.............................
.............................
Fri Sep 27
ORA012:error 12345 in xxjob....
ORA014:normal 23455.....
Sat Sep 28
ORA012:normal...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.