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 23456....
ORA014:error 34512 in xxjob...
Now,if I wanted to use C shell to find "yesterday error message" and print it, just like:
Fri Sep 27
ORA012:error 12345 in xxjob....
How should I use "nawk" to find out yesterday error message?
Thank you very much!
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 23456....
ORA014:error 34512 in xxjob...
Now,if I wanted to use C shell to find "yesterday error message" and print it, just like:
Fri Sep 27
ORA012:error 12345 in xxjob....
How should I use "nawk" to find out yesterday error message?
Thank you very much!