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:
cleanup  setup    test

temp/2.1/2.1.1/2.1.1.02:
cleanup  setup    test

temp/2.1/2.1.1/2.1.1.03:
cleanup  setup    test

temp/2.1/2.1.1/2.1.1.04:
cleanup  setup    test

temp/2.1/2.1.1/2.1.1.05:
cleanup  setup    test

temp/2.1/2.1.1/2.1.1.06:
cleanup  setup    test

temp/2.1/2.1.1/2.1.1.07:
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:
test

temp/2.2/2.2.1/2.2.1.02:
setup  test

temp/2.2/2.2.1/2.2.1.03:
setup  test

temp/2.2/2.2.1/2.2.1.04:
setup  test

temp/2.2/2.2.1/2.2.1.05:
test

temp/2.2/2.2.1/2.2.1.06:
setup  test

temp/2.2/2.2.1/2.2.1.07:
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