Re: [Networker] NSRADMIN wild cards
2008-04-30 00:25:33
> This will return all pools that begin with the name "Index," for
> example:
name: Indexed Archive;
name: Indexed Archive Clone;
That's fine because that's what you asked for. See following examples:
nsradmin> show name
nsradmin> print type: NSR pool; name: Def*
name: Default;
name: Indexed Archive Clone;
name: Default Clone;
name: Indexed Archive;
nsradmin> print type: NSR pool; name: ^Def*
name: Default;
name: Default Clone;
nsradmin> print type: NSR pool; name: Def.*
name: Default;
name: Default Clone;
nsradmin>
First one is yours, while following two are mine approach. What people seem
to forget or do not know is that * in regular expression is not as what is *
in shell where it is matching pattern. This explains your results. Or to
quote "The asterisk is a modifier. In a regular expression it specifies that
the previous character set can appear any number of times, including zero".
In your case Def* matches "de<anything after>".
Rgds,
H
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
|
|
|