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.
On Thu, 19 Aug 1999, Unidata Support wrote: > >To: "Unidata Support" <address@hidden> > >From: "Collin Daly" <address@hidden> > >Subject: E-mailing Station ID question > >Organization: . > >Keywords: 199908191341.HAA29882 > > Hello, > I've got a small formatting question. I'm attempting at > automattcally e-mailing our customer service center a particular > bulletin. I would like the subject line of the e-mail to read the > product ID and the station ID. For example: > > NOUS61 KBOS > > Here is the entry in my pqact.conf: > > ANY ^(NOUS42|NOUS^[1-9]) (K*) PIPE -strip -close > /usr/ucb/mail -s "\1\2" address@hidden > Colin, K* means zero or more K's, change (K*) to (K...) and you should get the results that you want. I believe all stations are 4 chars. Also you have a ^ before the [1-9], you don't want that either. ANY ^(NOUS42|NOUS[1-9]) (K...) PIPE -strip -close If you just want the NOUS42 report then it should be: ANY ^(NOUS42) (K...) PIPE -strip -close Robb... > Currently an example of the subject line reads: > > NOUS61K > > Thanks, > Collin > > > Collin Daly > Meteorological Systems Engineer > Alden Electronics, Inc. > 40 Washington Street > Westborough, Ma 01581 > Voice: (508)366-8851x2268 > Fax: (508)898-2427 > e-mail: address@hidden > visit us at: > http://www.alden.com > =============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research address@hidden WWW: http://www.unidata.ucar.edu/ ===============================================================================