# for user in `awk -F':' '$3 >= 600 && $3 <= 700 { print $1 }' /etc/passwd`; do > usermod -G mygroup $user > done