Re: Shell script to list group members

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Sep 23, 2008 at 6:43 PM, Barry Brimer <lists@xxxxxxxxxx> wrote:
>
> The egrep is using a leading anchor (^) to make sure the grep matches the
> beginning of the line.  If not, and the group pattern matched as one of the
> users it would print those lines too .. which is probably undesirable.
>

Grep understands the '^', so egrep is not needed.  Typically, you only
need egrep for patterns that involve alternative re's, like looking
for one of "abc|def|ghi" which grep does not recognize.

Also, it might be helpful to trim your replies so we don't need to
wade through the whole thread to see your reply.

mhr
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux