2008/7/21 Bjarne Nielsen <[EMAIL PROTECTED]>:
> getent group teachers |cut -d: -f4 |tr ',' '\n'

Tnks. having the list of teachers can (for example) add a link in
their home directories:

teacher=$(getent group teachers | cut -d: -f4 | tr ',' '\n')
for teacher in teachers; do
  #action
done


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to