copy a directory into ...
Hello,
How to copy a directory in all directories of a directory. For exemple, I've a home directory, with 500 user directories approximatly. And I want to copy one directory in all of these user directories. Thank you for your help. Ted |
Quote:
|
Quote:
Home> >user1 >user2 to >user500 and you want to copy 1 directory inside each user's directory to somewhere else. For instance say there is a folder called Tempfolder in all the users directories you would only want to copy that directory to another location? Or do you want to know the command to copy say user1's directory and all the sub directories in it? |
I was thinking tedtheinsane had a directory /something/here and wanted to copy that into each user's home directory so he would have:
/home/user1/here /home/user2/here . . . /home/user500/here Log in as root and run: Code:
% tcsh HTH Forrest |
Hello,
Thank you for your replies, sorry for my bad english. I try to explain my problem, with details. I'm using ubuntu server edition 7.10. the forrestt's reply is near my problem. The context : The directory tree is like this : /home/a/anton/myspace /home/a/alphablondy/myspace /home/b/beettlejuice/myspace . . . /home/z/zimbawe/myspace So, in /home/master, there is a directory called 'config' (/home/master/config) What I want to do : I want to copy the /home/master/config, in all users 's myspace. to get this : /home/a/anton/myspace/config /home/a/alphablondy/myspace/config /home/b/beettlejuice/myspace/config . . . /home/z/zimbawe/myspace/config Due to the system context, I can use python, shell, or pearl. Sorry for my english, I hope that my explanations are clear. I'm linux beginner. Thank you for your help. Regards |
Code:
% tcsh Forrest |
thank you
Hello,
thank you for your help, I try it monday, (I'm on holiday). Regards |
Code:
#!/bin/sh |
All times are GMT -5. The time now is 03:48 AM. |