批次刪除指定目錄下的sh指令碼

zhangsharp20發表於2015-11-10
[oracle@kf210 ~]$ cat c.sh
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_g3_zbq/01\ init/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_g3_zbq/01\ table/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_g3_zbq/02\ view/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_g3_zbq/04\ procedure/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldm/01\ init/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldm/01\ table/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldm/02\ view/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldm/04\ procedure/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_dw/01\ init/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_dw/01\ table/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_dw/02\ view/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_dw/04\ procedure/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_di/01\ init/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_di/01\ table/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_di/02\ view/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_di/04\ procedure/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldcx/01\ init/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldcx/01\ table/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldcx/02\ view/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldcx/04\ procedure/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_cxtj/01\ init/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_cxtj/01\ table/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_cxtj/02\ view/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_cxtj/04\ procedure/
rm *
cd /u01/app/oracle/admin/QJBJ1DW/dpdump/hx_zgxt/02\ view/
rm *
[oracle@kf210 ~]$ 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29802484/viewspace-1826712/,如需轉載,請註明出處,否則將追究法律責任。

相關文章