Miscellany
public text v1 · immutable# --------------------------------
# find a group id that is free
# --------------------------------
gidcount=`nireport / /groups gid | sort -n | tail -n 1`
gidcount=`echo $gidcount + 1 | bc`
if [ $gidcount -lt 1025 ]
then
gidcount=1025
fi