[TriLUG] script to find non-alpha GID

Mark Fowle mfowle at adeliesystems.com
Thu Jan 17 16:34:45 EST 2013


Thanks igor (and all ) for your help --  I realized I had to check for
non-alpha UID's as well so based on Igor's script I came up with: find
/home/ -printf '%p %u %g\n'  | awk '{ if (($2 ~ /^[0-9]*$/) || ($3 ~
/^[0-9]*$/)) print }'




On Thu, Jan 17, 2013 at 4:29 PM, John Vaughters <jvaughters04 at yahoo.com>wrote:

> Just remove the $1 and it should work, or replace it with your needs
>
>
>
> ________________________________
> From: Mark Fowle <mfowle at adeliesystems.com>
> To: Triangle Linux Users Group General Discussion <trilug at trilug.org>
> Sent: Thursday, January 17, 2013 4:16 PM
> Subject: Re: [TriLUG] script to find non-alpha GID
>
> :-)  thanks....  Just tried Igor's example didn't work as is.... hmmm
> --
> This message was sent to: mfowle at adeliesystems.com <
> mfowle at adeliesystems.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that
> address.
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web  :
> http://www.trilug.org/mailman/options/trilug/mfowle%40adeliesystems.com
> TriLUG FAQ          :
> http://www.trilug.org/wiki/Frequently_Asked_Questions
>



More information about the TriLUG mailing list