in reply to count of USER UNIX groups
That's a bit vague... please see How do I post a question effectively? and perhaps you could explain a bit more about what you're trying to do and what you have tried so far.
Anyway, if you really just want a count of the existing UNIX groups, see getgrent (note: apparently the online doc for this version isn't showing up, but try the command perldoc -f getgrent), here's one quick way:
my $count = 0; $count++ while defined getgrent; print "$count\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: count of USER UNIX groups
by Apronline (Initiate) on Jan 25, 2015 at 06:34 UTC | |
by pme (Monsignor) on Jan 25, 2015 at 09:29 UTC | |
by Anonymous Monk on Jan 25, 2015 at 13:49 UTC |