批次顯示指定目錄下的檔案數量的sh指令碼
[oracle@kf210 ~]$ cat count.sh
echo J1_G3_ZBQ
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_g3_zbq/04\ procedure/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_g3_zbq/01\ init/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_g3_zbq/01\ table/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_g3_zbq/02\ view/ |grep "^-"| wc -l
echo J1_LDM
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldm/04\ procedure/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldm/01\ init/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldm/01\ table/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldm/02\ view/ |grep "^-"| wc -l
echo J1_DW
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_dw/04\ procedure/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_dw/01\ init/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_dw/01\ table/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_dw/02\ view/ |grep "^-"| wc -l
echo J1_DI
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_di/04\ procedure/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_di/01\ init/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_di/01\ table/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_di/02\ view/ |grep "^-"| wc -l
echo J1_LDCX
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldcx/04\ procedure/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldcx/01\ init/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldcx/01\ table/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldcx/02\ view/ |grep "^-"| wc -l
echo J1_CXTJ
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_cxtj/04\ procedure/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_cxtj/01\ init/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_cxtj/01\ table/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_cxtj/02\ view/ |grep "^-"| wc -l
echo HX_ZGXT
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/hx_zgxt/02\ view/ |grep "^-"| wc -l
[oracle@kf210 ~]$
echo J1_G3_ZBQ
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_g3_zbq/04\ procedure/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_g3_zbq/01\ init/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_g3_zbq/01\ table/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_g3_zbq/02\ view/ |grep "^-"| wc -l
echo J1_LDM
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldm/04\ procedure/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldm/01\ init/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldm/01\ table/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldm/02\ view/ |grep "^-"| wc -l
echo J1_DW
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_dw/04\ procedure/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_dw/01\ init/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_dw/01\ table/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_dw/02\ view/ |grep "^-"| wc -l
echo J1_DI
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_di/04\ procedure/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_di/01\ init/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_di/01\ table/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_di/02\ view/ |grep "^-"| wc -l
echo J1_LDCX
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldcx/04\ procedure/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldcx/01\ init/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldcx/01\ table/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_ldcx/02\ view/ |grep "^-"| wc -l
echo J1_CXTJ
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_cxtj/04\ procedure/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_cxtj/01\ init/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_cxtj/01\ table/ |grep "^-"| wc -l
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/j1_cxtj/02\ view/ |grep "^-"| wc -l
echo HX_ZGXT
ls -l /u01/app/oracle/admin/QJBJ1DW/dpdump/hx_zgxt/02\ view/ |grep "^-"| wc -l
[oracle@kf210 ~]$
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29802484/viewspace-1826720/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 批次刪除指定目錄下的sh指令碼指令碼
- 統計資料夾檔案數量的sh指令碼指令碼
- Python指令碼實現查詢指定目錄下包含指定關鍵字的檔案Python指令碼
- Shell指令碼-壓縮指定目錄下前一天檔案指令碼
- 刪除指定目錄下指定字尾的檔案
- 刪除指定資料夾的檔案內容的sh指令碼指令碼
- linux下目錄、檔案顯示顏色的設定生效Linux
- 指定目錄下的所有檔案中的字串替換字串
- apache使某目錄下的檔案能夠列表顯示出來Apache
- dir 顯示目錄檔案和子目錄列表(轉)
- chm 檔案開啟只顯示目錄,不顯示內容
- [python]如何刪除目錄下指定格式的檔案Python
- Java 從指定URL下載檔案並儲存到指定目錄Java
- 對於C#winform介面開發中開啟指定的目錄及開啟指定目錄下的檔案C#ORM
- Linux查詢某個目錄下每個子目錄的所有檔案數量Linux
- windows 把指定目錄的檔案複製到當前目錄Windows
- 《使用shell位置變數進行目錄檔案的備份小指令碼》變數指令碼
- 在linux下顯示中文目錄和檔名Linux
- 解壓 TAR 檔案到指定目錄的方法
- 複習Linux如何顯示檔案指定行數的內容Linux
- 【macOS】顯示/隱藏 指定檔案Mac
- shell指令碼:建立函式並指定目錄進行下載指令碼函式
- python獲取指定目錄下的所有指定字尾的檔名Python
- py目錄下獲取指定字尾檔案打包成zip檔案
- 遍歷某一個指定目錄下的所有子目錄和檔案(遞迴)遞迴
- linux 統計當前目錄下檔案或者資料夾的數量Linux
- 遍歷當前目錄下的所有HTML檔案,並且顯示到螢幕中HTML
- Linux解壓檔案到指定目錄的方法Linux
- Delphi下載指定網址(URL)的檔案,帶進度條顯示
- shell指令碼之批次清空檔案指令碼
- RedHat下顯示彩色目錄列表 (轉)Redhat
- 遍歷目錄下的所有檔案
- 注意放在/tmp目錄下的檔案
- windows打包指令碼出現 /bin/sh^M: 壞的直譯器: 沒有那個檔案或目錄 錯誤Windows指令碼
- 8.var目錄下的檔案和目錄詳解
- 【備份恢復】利用 備份控制檔案到指定目錄下的控制檔案 恢復控制檔案
- 逐行顯示檔案內容並允許修改的DCL指令碼指令碼
- 【ZIP】打包過濾指定目錄和檔案