Folks,
Is there a way to perform tilde substitution on variables with ksh ?
Briefly, the following shell:
Does not work as I would like, i.e. it prints ~user1, ~user2 insteadQuote:> #! /usr/bin/ksh
> USERS="user1 user2 user3 user4"
> for user in $USERS; do
> print ~$user
> done
> exit
of the home directories ... :-( Do not reply me to get the home from
the passwd file (or nis map) with awk. I'm aware of that solution but
I do not like it very much.
Thanks for your help,
Alain
--
Dr. Alain H. Ninane | Tel : +32-10-47.32.32 - Fax: +32-10-45.21.83
Nuclear Physics Dept. | Ch. du Cyclotron, 2
B-1348 Louvain-la-Neuve | BELGIUM