[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 19990206: LDM/pqact question



Hi Steve,

> >Anyway, I have a question over a pqact entry in my LDM. I am doing this:
> >
> >AFOS ^CHISWRIL(.*) ([0-3][-0-9])([0-2][0-9])
> >     FILE domestic/state_roundups/IL.(\1:mmm)\1\2
> >
> >OK. What I am looking for is an output file of:
> >
> >IL.feb0703
> >
> >Where 07 is the day, and 03 is the hour in Z time. This works for my
> >DDPLUS entry, and I searched for help on the LDM page and I couldn't get
> >an answer off of it, searching through the archives (man pages didn't help
> >either).
> >
> >Any hints? I am getting NO output file right now. Weird.
> >
> >Gilbert
> 
> Gilbert,
> 
> Looks like 1 typo in the field [-0-9] should be [0-9]

I had to manually type this in, so that was just a typo on my part.
BUT, this solved it:
 
> Also, (\1:mmm)\1\2 should be (\2:mmm)\2\3 I believe if your second
> parentheses is matching on the day of month and third is hour of the
> day.

That did the trick!

> I can't tell from the text above, but also check for a TAB between FILE and 
> domestic.

Yep, there was a tab there.

> When in doubt about the pattern, you can run "notifyme" with the -p action to
> verify that your pattern is correct.

Aha! Will do. Thank you Steve...I really appreciate it! If I ever get out
to Boulder on of these days, I may have to reat all you guys for dinner
for putting up with me all these years!

Gilbert

*******************************************************************************
Gilbert Sebenste                                                     ********
Internet: address@hidden    (My opinions only!)                     ******
Staff Meteorologist, Northern Illinois University                      ****
Work phone: 815-753-5492                                                ***
*******************************************************************************