• Welcome to DNForum.com - Domain Investor Forum, Free Domain Marketplace and a community for 45k+ domain pros
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

How to duplicate a directory in bulk in linux?

Status
Not open for further replies.

yesonline

New Member
The Originals
Legacy Platinum Member
Joined
May 6, 2002
Messages
902
Reaction score
10
Hello, I am using Linux RH8 now, and I want to copy (duplicate ) one directory named A to a new directory named A1, so I type "cp -R A A1 " and it's done, that is ok to me.
But if I want to copy A to a hundred new directories, do I have to type " cp -R A A1 " "cp -R A A2" " cp -R A A3"..... " cp -R A A200" ?
Is there any idea how can I do it once to copy and duplicate in bulk?
Some body told me using Bash Script, unfortunately I have no idea what it is, and I have to do this copy now, any idea?


Thanks in advance:)
 
You can write the script in any shell. (i.e., csh, bash, sh, ksh, perl)


Doc
 
Thank you for all your replies, and I've got my answer from a BBS in Taiwan:razz:
 
Status
Not open for further replies.
Back
Top Bottom