perl -F: -i.save -ape 'if ($F[3] =~ m{bronto} and not m{robin}) { chomp ; $_ .= qq{,robin\n} }' /etc/group