Depending on your definition of quick:


ls -lR | grep ^[d-] | perl -ane '$user{$F[2]}++; $group{$F[3]}++; END{ print " Users\n"; for $s (keys %user) {print "$s $user{$s}\n"} print " Groups\n"; for $s (keys %group) { print "$s $group{$s}\n"}}'


On 2017-12-15 11:55, Galen Seitz wrote:
Hi,

Can anyone suggest a quick way to get a count of the number files owned
by each uid, or alternatively, print each unique uid that exists in the
filesystem? Bonus points for doing the same thing for gid's in the same
pass.

thanks,
galen

--
      Michael Rasmussen, Portland Oregon
    Be Appropriate && Follow Your Curiosity
_______________________________________________
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to