[TriLUG] possible awk/grep question

Joseph Mack NA3T jmack at wm7d.net
Mon Dec 31 09:05:14 EST 2007


On Sun, 30 Dec 2007, Craig Taylor wrote:

> I thought about the awk route also but decided to go after your intent
> instead of your algorithm :-)

I was asking for two solutions, one for the users in 
/etc/passwd and one to match a field in a record, so either 
answer would have done.

> Generally, checking for 100 as the primary user group (the 4th column) will
> work but for the fact that users can belong to multiple groups and the users
> group may not always be 100 (generally is however).

it's easy enough to find the number in /etc/groups

Joe
-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!



More information about the TriLUG mailing list