On Thu, Mar 5, 2009 at 6:06 PM, Swayam <swaya...@gmail.com> wrote:

> Hi ,
>
>      My directory structure is like
>
> ls -R temp
> temp:
> 2.1      2.2      cleanup  setup
>
> temp/2.1:
> 2.1.1    cleanup  setup
>
> temp/2.1/2.1.1:
>   setup cleanup 2.1.1.01  2.1.1.02  2.1.1.03  2.1.1.04  2.1.1.05  2.1.1.06
> 2.1.1.07  2.1.1.08
>
> temp/2.1/2.1.1/2.1.1.01 <http://2.1.1.1/>:
> cleanup  setup    test
>
> temp/2.1/2.1.1/2.1.1.02 <http://2.1.1.2/>:
> cleanup  setup    test
>
> temp/2.1/2.1.1/2.1.1.03 <http://2.1.1.3/>:
> cleanup  setup    test
>
> temp/2.1/2.1.1/2.1.1.04 <http://2.1.1.4/>:
> cleanup  setup    test
>
> temp/2.1/2.1.1/2.1.1.05 <http://2.1.1.5/>:
> cleanup  setup    test
>
> temp/2.1/2.1.1/2.1.1.06 <http://2.1.1.6/>:
> cleanup  setup    test
>
> temp/2.1/2.1.1/2.1.1.07 <http://2.1.1.7/>:
> cleanup  setup    test
>
> temp/2.1/2.1.1/2.1.1.08:
> cleanup  setup    test
>
> temp/2.2:
> 2.2.1    cleanup  setup
>
> temp/2.2/2.2.1:
> 2.2.1.01  2.2.1.02  2.2.1.03  2.2.1.04  2.2.1.05  2.2.1.06  2.2...1.07
> 2.2.1.08  2.2.1.09  2.2.1.10
>
> temp/2.2/2.2.1/2.2.1.01 <http://2.2.1.1/>:
> test
>
> temp/2.2/2.2.1/2.2.1.02 <http://2.2.1.2/>:
> setup  test
>
> temp/2.2/2.2.1/2.2.1.03 <http://2.2.1.3/>:
> setup  test
>
> temp/2.2/2.2.1/2.2.1.04 <http://2.2.1.4/>:
> setup  test
>
> temp/2.2/2.2.1/2.2.1.05 <http://2.2.1.5/>:
> test
>
> temp/2.2/2.2.1/2.2.1.06 <http://2.2.1.6/>:
> setup  test
>
> temp/2.2/2.2.1/2.2.1.07 <http://2.2.1.7/>:
> setup  test
>
> temp/2.2/2.2.1/2.2.1.08:
> setup  test
>
> temp/2.2/2.2.1/2.2.1.09:
> setup  test
>
> temp/2.2/2.2.1/2.2.1.10:
> setup  test
>
>
> I want to copy some subdirectory and files under it to another directory it
> should exactly create similar directory structure
>
> like if i will give temp
> /2.2/2.2.1/2.2.1.10:
>
> /2.2/2.2.1/2.2.1.08:
>
> and
>
> then it will create a directory destination/
>
> ls -R  destination
>
> destination:
> 2.2      cleanup  setup
>
> destination/2.2:
> 2.2.1    cleanup  setup
>
> destination/2.2/2.2.1/2.2.1.10:
> setup  test
>
> destination/2.2/2.2.1/2.2.1.08:
> setup  test
>
> means exact directory tree will all files
>
>
>

Reply via email to