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

Re: 20050908: Avoiding certain products via pqact.conf


>Date: Thu, 08 Sep 2005 14:13:50 -0500
>From: Leon Minton <address@hidden>
>Organization: NOAA
>To: Steve Emmerson <address@hidden>
>Subject: Re2: 20050908: Avoiding certain products via pqact.conf

The above message contained the following:

> After thinking on it a little bit, rather than trying to use regular
> expressions, I could to something like:
>     WMO
>           ^(....[0-9][0-9]|....[0-9]) (K|T|P|N)(...)(.*)/p(...)(.|..|...)$
>           PIPE
>           -strip -close fileExceptRrsDpaRcm \3 \5 \6
> where the "fileExceptRrsDpaRcm" script could be
>     if test $2 = RRS -o $2 = DPA -o $2 = RCM; then

Ah!  The substrings you didn't want are in \5.

>       cat >/dev/null
>     else
>       cat >/home/ldm/data/$1/$2$3
>     fi

That would work.  You could still simplify the entry to

                ^....[0-9][0-9]|....[0-9] (K|T|P|N)(...).*/p(...)(.|..|...)$
                -strip -close fileExceptRrsDpaRcm \2 \3 \4

and use the same script above.

Steve Emmerson

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.