Portal Home > Knowledgebase > Articles Database > copy file to multipal directory.
copy file to multipal directory.
Posted by map007, 04-16-2008, 06:28 AM |
Hi,
I want to copy one file index.html to multipal direcoties (40+ directory)how can i do it .
Thanks
|
Posted by david510, 04-16-2008, 07:36 AM |
Does the directories follow a common path? Like
/home/user1/directory
/home/user2/directory
/home/user3/directory
|
Posted by map007, 04-16-2008, 07:44 AM |
yes just like you said .
|
Posted by david510, 04-16-2008, 09:39 AM |
If the directory name is same for all users you can use the below script. Make a list of usernames in a file, say /root/userlist. Does your server have cpanel?
|
Add to Favourites Print this Article
Also Read