/etc/project user-list format

  • Follow


We have an /etc/project file with user and group wildcards like this:

[dtpx]pc*

Now I know what that means normally but I can't find mention of this
in any docs. They only mention the usual * and !

I assume that such a pattern won't match

pczzzz

but I need to be sure. Are there some docs that detail the allowable
patterns for this field more than the man page?
0
Reply philkime 9/1/2009 8:01:31 AM

On Sep 1, 1:01=A0am, philkime <Phi...@kime.org.uk> wrote:
> We have an /etc/project file with user and group wildcards like this:
>
> [dtpx]pc*
>
> Now I know what that means normally but I can't find mention of this
> in any docs. They only mention the usual * and !
>
> I assume that such a pattern won't match
>
> pczzzz
>
> but I need to be sure. Are there some docs that detail the allowable
> patterns for this field more than the man page?

Try the man page for sed or awk or grep. Anything inside the brackets
[ ] is part of the regular expression for pattern matching. Each
character is treated independently. So, [dtpx]pc* would translate to"
dpc*
tpc*
ppc*
xpc*

pc* !=3D pczzzz
0
Reply desert_denizen 9/2/2009 3:19:15 PM


On Sep 2, 5:19=A0pm, desert_denizen <erik.sch...@gmail.com> wrote:
> On Sep 1, 1:01=A0am, philkime <Phi...@kime.org.uk> wrote:
>
> > We have an /etc/project file with user and group wildcards like this:
>
> > [dtpx]pc*
>
> > Now I know what that means normally but I can't find mention of this
> > in any docs. They only mention the usual * and !
>
> > I assume that such a pattern won't match
>
> > pczzzz
>
> > but I need to be sure. Are there some docs that detail the allowable
> > patterns for this field more than the man page?
>
> Try the man page for sed or awk or grep. Anything inside the brackets
> [ ] is part of the regular expression for pattern matching. Each
> character is treated independently. So, [dtpx]pc* would translate to"
> dpc*
> tpc*
> ppc*
> xpc*
>
> pc* !=3D pczzzz

Thanks - I understand what this would normally mean in regexp terms
but wasn't sure it really was valid in /etc/projects since the man
pages only mention basic wildcard * and ! "patterns".
0
Reply philkime 9/8/2009 8:32:04 AM

2 Replies
436 Views

(page loaded in 0.052 seconds)

Similiar Articles:













7/26/2012 9:55:26 AM


Reply: