17 Jan
2002
17 Jan
'02
14:53
Hi all,
How would I write a script that only affected certain groups?
Trying to think of an example, how could I run:
rm /home/*/file_to_delete
only on the home directories of folk who belong to the 'pupil' group.
One command I run is find /home -name '*' -maxdepth 1 -exec cp /home/template/file_to_copy '{}'/new_file ';'
Can I build a "where user is in group 'pupils'" into that somehow?
You could try something like "find /home -group pupil"... -- Mark Evans St. Peter's CofE High School Phone: +44 1392 204764 X109 Fax: +44 1392 204763