[K12OSN] How about a scripting question :-)
Dan Young
dyoung at mesd.k12.or.us
Thu Nov 9 21:21:06 UTC 2006
Jim Kronebusch wrote:
> Let's say I have a group called "Staff" in /etc/group with users x,y and z.
> How would I create a script that would grab the users from the group "Staff"
> and create a new file "/etc/mailusers" with all the users listed separately on
> their own line?
getent group Staff | cut -d':' -f4 | sed 's/,/\n/g' > /etc/mailusers
--
Dan Young <dyoung at mesd.k12.or.us>
Multnomah ESD - Technology Services
503-257-1562
More information about the K12OSN
mailing list