[H-GEN] Creating a directory in a group of /usr/username directories
Mark Suter
mark at zwitterion.humbug.org.au
Sat Oct 30 00:35:33 EDT 1999
-----BEGIN PGP SIGNED MESSAGE-----
Hilton,
> I need to be able to create a directory called "tutorials" inside all the
> /usr/student/dipmm01 to /usr/student/dipmm20 accounts on an SGI Origin 2000.
> Without manually creating this directory in each user's home, is there any
> perl or awk script that can achieve this?
Not as such - this is a very simple task.
> It look slike I should learn one of these languages. Which one (NOT
> FLAMEBAIT) would be the best for this sort of application - creating
> directory structures?
Use the shell, Luke!
cd /usr/student
for user in dipmm[0-1][0-9] dipmm20 ; do
mkdir $user/tutorials
chown $user $user/tutorials
done
Yours sincerely,
- -- Mark John Suter | I know that you believe you understand
suter at humbug.org.au | what you think I said, but I am not sure
PGP encryption is OK | you realise that what you heard is not
Ph: +61 4 1162 2316 | what I meant. anonymous
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Comment: Public key available from http://www.uq.edu.au/~suter/public_key.txt
Charset: noconv
iQCVAwUBOBp1kXBbxiOCJ17ZAQGD6gP/V4FNlHOQ6tC0oIZ8M64EMzXf/76ltGqu
1vrCbvCuPCXlZWH57Htue/4Sw7T6OpYKbJhra3CrudzMfOEYtgYyk2zaQHOo+khD
JahPFP/9BmJ1t8rEE1zRb0tdQozfy+YuNZNLyZl6HeoNQmmjsTpcd9CRh9FMgzxc
qxtC0SO4dY0=
=yqax
-----END PGP SIGNATURE-----
More information about the General
mailing list