David, et al -- ...and then David Haller said... % % Hello, Hiya! % % On Thu, 15 Feb 2018, David T-G wrote: ... % >Season to taste :-) I'd be VERY interested in how this could be % >condensed, by the way! % % awk -F: -vG=groupname ' % BEGIN { % while( getline <"/etc/group" ) { % if( $1 == G ) { GID=$3; } % } % } % $4 == GID { print $1; } % ' < /etc/passwd Hmmm... Nice in that it doesn't make a separate call to look through the group file, but I don't know that I could go so far as to say that that's condensed from my previous one-liner :-) % % HTH, % -dnh HAND :-D -- David T-G See http://justpickone.org/davidtg/email/ See http://justpickone.org/davidtg/tofu.txt -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org