Why not, assuming the mac has similar piping etc capabilities as *NIX, something along the lines of (untested)...
sudo dscl . list groups gid | perl -ane "$lookup{$@F[1]} = {$@F[0]}; E +ND{print $lookup{87}}"
HTH
In reply to Re: finding a value in a list
by Bloodnok
in thread finding a value in a list
by baurel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |