Linux复制指定目录下的文件夹结构

时间:2024-05-02 23:08:07

[root@ebs12vis ~]# su - applmgr
[applmgr@ebs12vis ~]$ cd $APPL_TOP/inv
[applmgr@ebs12vis inv]$ find . -type d -exec mkdir -p $APPL_TOP/cux/{} \;
[applmgr@ebs12vis inv]$ cd ..
[applmgr@ebs12vis appl]$ cd cux
[applmgr@ebs12vis cux]$ du
8       ./12.0.0/help/US
8       ./12.0.0/help/ZHS
24      ./12.0.0/help
8       ./12.0.0/html
8       ./12.0.0/reports/US
8       ./12.0.0/reports/ZHS
24      ./12.0.0/reports
8       ./12.0.0/log
8       ./12.0.0/lib
8       ./12.0.0/out
8       ./12.0.0/patch/115/import/US
8       ./12.0.0/patch/115/import/ZHS
24      ./12.0.0/patch/115/import
8       ./12.0.0/patch/115/odf
8       ./12.0.0/patch/115/xdf
8       ./12.0.0/patch/115/irep/patch/115/import/US
16      ./12.0.0/patch/115/irep/patch/115/import
8       ./12.0.0/patch/115/irep/patch/115/odf
8       ./12.0.0/patch/115/irep/patch/115/sql
40      ./12.0.0/patch/115/irep/patch/115
48      ./12.0.0/patch/115/irep/patch
8       ./12.0.0/patch/115/irep/java/ebi/item/server
16      ./12.0.0/patch/115/irep/java/ebi/item
24      ./12.0.0/patch/115/irep/java/ebi
32      ./12.0.0/patch/115/irep/java
88      ./12.0.0/patch/115/irep
8       ./12.0.0/patch/115/xml/US
8       ./12.0.0/patch/115/xml/ZHS
24      ./12.0.0/patch/115/xml
8       ./12.0.0/patch/115/driver
8       ./12.0.0/patch/115/publisher/templates/US
8       ./12.0.0/patch/115/publisher/templates/ZHS
24      ./12.0.0/patch/115/publisher/templates
8       ./12.0.0/patch/115/publisher/defs
40      ./12.0.0/patch/115/publisher
8       ./12.0.0/patch/115/sql
216     ./12.0.0/patch/115
224     ./12.0.0/patch
8       ./12.0.0/java/make
8       ./12.0.0/java/jar
24      ./12.0.0/java
8       ./12.0.0/xml/orc115
16      ./12.0.0/xml
8       ./12.0.0/forms/US
8       ./12.0.0/forms/ZHS
24      ./12.0.0/forms
8       ./12.0.0/mds/lov/webui/ZHS
16      ./12.0.0/mds/lov/webui
8       ./12.0.0/mds/lov/consign/webui/ZHS
16      ./12.0.0/mds/lov/consign/webui
24      ./12.0.0/mds/lov/consign
48      ./12.0.0/mds/lov
8       ./12.0.0/mds/wshtxn/server/ZHS
16      ./12.0.0/mds/wshtxn/server
24      ./12.0.0/mds/wshtxn
8       ./12.0.0/mds/consign/webui/ZHS
16      ./12.0.0/mds/consign/webui
24      ./12.0.0/mds/consign
8       ./12.0.0/mds/rcv/server/ZHS
16      ./12.0.0/mds/rcv/server
24      ./12.0.0/mds/rcv
8       ./12.0.0/mds/attributesets/ZHS
16      ./12.0.0/mds/attributesets
8       ./12.0.0/mds/txnui/webui/ZHS
16      ./12.0.0/mds/txnui/webui
8       ./12.0.0/mds/txnui/lotDetails/webui/ZHS
16      ./12.0.0/mds/txnui/lotDetails/webui
24      ./12.0.0/mds/txnui/lotDetails
8       ./12.0.0/mds/txnui/serialDetails/webui/ZHS
16      ./12.0.0/mds/txnui/serialDetails/webui
24      ./12.0.0/mds/txnui/serialDetails
72      ./12.0.0/mds/txnui
216     ./12.0.0/mds
8       ./12.0.0/bin
8       ./12.0.0/mesg
8       ./12.0.0/admin/driver
8       ./12.0.0/admin/sql
24      ./12.0.0/admin
8       ./12.0.0/sql
640     ./12.0.0
648     .