On Wednesday 21 June 2006 16:20, Neil Bothwick wrote: > egrep ^.*?:.*?:.*?:100: /etc/passwd | cut -d: -f1 | while read u do gpasswd > -a $u cron; done > > will add all users from group GID 100 (users on this system) to the cron > group. Well... awk -F: "\$4~/^\ `awk -F: '$1~/^users$/{print $3}' < /etc/group`\ \$/{print \$1}" < /etc/passwd | \ while read user; do gpasswd -a "$user" cron done ;) -- Bo Andresen