[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: help with cp or mkdir



Skull Crusher wrote:
Please help cause I REALLY don't want to go into each and every dir and
do a mkdir public_html for 200 hundred users

Why not?


for i in /home/*/* ; do
	mkdir $i/public_html
	chown `basename $i`:`basename $i` $i/public_html
done

Should just take a few seconds.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]