Networker

Re: [Networker] NSRADMIN wild cards

2008-04-30 00:29:43
Subject: Re: [Networker] NSRADMIN wild cards
From: Hrvoje Crvelin <hcrvelin AT GMAIL DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 30 Apr 2008 06:27:44 +0200
Actually, that would be "<anything before>de<anything after>".  It is just
like grep where last character may also be ignored :)

-----Original Message-----
From: Hrvoje Crvelin [mailto:hcrvelin AT gmail DOT com] 
Sent: Wednesday, April 30, 2008 6:23 AM
To: 'EMC NetWorker discussion'; 'James Pratt'
Subject: RE: [Networker] NSRADMIN wild cards

> 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

<Prev in Thread] Current Thread [Next in Thread>