Berny -- ...and then Bernhard Voelker said... % % On 02/15/2018 04:08 PM, Alex Naumov wrote: % > The problem in your example is not parsing. % > My GID can come from, for example, LDAP. In that case you will get nothing. % > ... % % That wouldn't help because also the groups may come from LDAP. Good point to you both. % % What about: % % $ getent passwd | awk -F: -v gid="$(getent group users | cut -d: -f3)" '$4 == gid' [snip] Ooooh! I like (except for the bash/ksh-centric () instead of `` form) that! Use a $G holder to make calling it easy and you could just call it right out of your history. 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