LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   copy and rename the existing directory using BASH script (https://www.linuxquestions.org/questions/linux-software-2/copy-and-rename-the-existing-directory-using-bash-script-664077/)

neo2k 08-20-2008 10:29 AM

copy and rename the existing directory using BASH script
 
Hi Guys,

i am trying to create a script to copy a single existing directory to multiple copies and rename those copies sequentially in bash script.

for e.g.

my existing directory is Itr1_b1_w1_130 and i want to make multiple copies of this directory and this should be renamed as Itr2_b1_w1_130, Itr3_b1_w1_130....Itr40_b1_w1_130.

I know i have to use the for loop to get this work.

Any help or clues to get this work done would be really helpful.Appreciate your help.

Thanks

p.s i also posted this in LINUX-newbie forum too.

tredegar 08-20-2008 10:35 AM

I think you need to read the LQ Rules: http://www.linuxquestions.org/linux/rules.html
Especially these bits:

- Do not expect LQ members to do your homework
- Do not post the same discussion in more than one forum.

colucix 08-20-2008 10:37 AM

Quote:

Originally Posted by neo2k (Post 3253808)
p.s i also posted this in LINUX-newbie forum too.

Multiple posts of the same message is not allowed. If you want the post to be moved to another forum, ask to a moderator. I replied to your other thread. This is reported for closure.

reddazz 08-20-2008 10:43 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 06:44 AM.