ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 批量显示指定目录下的文件数量的sh脚本

批量显示指定目录下的文件数量的sh脚本

原创 Linux操作系统 作者:zhangsharp20 时间:2015-11-10 10:27:23 0 删除 编辑
[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 ~]$ 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29802484/viewspace-1826720/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-08-12

  • 博文量
    382
  • 访问量
    631986