Re: help with cp or mkdir

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

 



Rik Thomas wrote:
how about

mkdir /home/*/*/public_html

... because the shell will expand that glob to the existing public_html directories? Even if there were no public_html directories, it wouldn't work. The shell just wouldn't expand it all.


You could create the dirs like this:
mkdir public_html
cp -a public_html /home/*/*

But in that case, the permissions on the directories would still be all wrong.



--
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux