Networker

Re: [Networker] NSRADMIN wild cards

2008-04-29 11:20:17
Subject: Re: [Networker] NSRADMIN wild cards
From: A Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 29 Apr 2008 15:15:57 +0000
On Tue, Apr 29, 2008 at 10:12:59AM -0400, Venkat Tudi wrote:
> Hi,
> I am looking to find out how to use wild cards in NSRADMIN.
> for example
> . type: NSR client; group: oradbs-*;
> 
> print

There is a 'nsr_regex' man page.  But the main thing is that you'll need
to use regular expressions, not globs.

So instead of '*' for zero or more characters, it would be '.*'.

There's another trick.  It appears that if you don't use any regular
expression characters, it has to be a complete match so:

print name:john          would not match name: jonathan.

But either of 

print name:john.*    or
print name:^john 

would match.  The first because the .* matches the rest of the name, the
second because the anchor shows this to be a regular expression.

-- 
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER