刪除指定資料夾的檔案內容的sh指令碼

zhangsharp20發表於2016-04-14
[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-2081035/,如需轉載,請註明出處,否則將追究法律責任。

相關文章