This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Kirk, > I use LDM to receive files from the SuomiNet project. > File names have this form: > SC04_17314_SC04_1471-4-18000.BNX > > I created the following pqact.conf entry: > > AFOS > ^(S[A-Z][0-9][0-9]\_[0-9][0-9][0-9][0-9][0-9]\_S[A-Z][0-9][0-9]\_[0-9][0-9][0-9][0-9]-[0-9]-[0-9][0-9][0-9][0-9][0-9])(\.BNX) > FILE -close /home/ldm/data/suominet/bnx/\1\2 > > This entry works as expected, except I also receive files like: > SA39_UNKNOWN_SA39_1472-5-43200.BNX > and > SC04_17314_SC04_1471-4.BNX > > I do not follow why these last two files matched the pattern. > > Why does '_UNKNOWN_' match '\_[0-9][0-9][0-9][0-9][0-9]\_' > and > '-4.BXN' match '-[0-9]-[0-9][0-9][0-9][0-9][0-9])(\.BNX)'? The "regex" utility, which comes with the LDM package, uses the same pattern-matching as the "pqact" utility. The examples you gave work correctly on my system (Linux 2.6.23.14-115.fc8): regex -s 'SA39_UNKNOWN_SA39_1472-5-43200.BNX' '^(S[A-Z][0-9][0-9]\_[0-9][0-9][0-9][0-9][0-9]\_S[A-Z][0-9][0-9]\_[0-9][0-9][0-9][0-9]-[0-9]-[0-9][0-9][0-9][0-9][0-9])(\.BNX)' no match regex -s 'SC04_17314_SC04_1471-4.BNX' '^(S[A-Z][0-9][0-9]\_[0-9][0-9][0-9][0-9][0-9]\_S[A-Z][0-9][0-9]\_[0-9][0-9][0-9][0-9]-[0-9]-[0-9][0-9][0-9][0-9][0-9])(\.BNX)' no match What do these commands do on your system? > Thanks for your insight. > > -- Kirk > > ***************************************** > * Kirk L. Holub * > * NOAA Earth System Research Laboratory * > * 325 Broadway * > * Bldg 33/2B143/x6642 * > * Boulder, CO 80305-3328 * > * * > * Global Systems Division * > * Forecast Applications Branch * > * * > * 303-497-6642 (W) 303-748-7262 (FAX) * > * 303-748-6390 (Cell) * > ***************************************** Regards, Steve Emmerson Ticket Details =================== Ticket ID: OIF-246882 Department: Support LDM Priority: Normal Status: On Hold