zoukankan      html  css  js  c++  java
  • How to remove all the empty files or directories?

    How to remove all the empty files or directories?

    How to remove all the empty files or directories?

    I am confused why I get many empty directories inside my Downloads directory, and I have to remove all of the empty ones. Here is what I did:

    find home/wujing/Downloads -empty -type d -delete

    The -type option tells find to match only directories, another similar option is -type f which matches regular files. The -delete option will actually delete all of the matched items.

    The xargs can do the same job.

    find run/shm -type d -empty -print0 xargs -0 -I {} rmdir "{}"

    Author: wujing

    Created: 2014-10-22 三 10:02

    Emacs 24.3.1 (Org mode 8.2.6)

    Validate

  • 相关阅读:
    Microsoft Dynamics CRM4.0 Data Auditing and Restore (数据审核和恢复)
    Microsoft Dynamics CRM4.0 在联系人contact列表上直接发送邮件
    安装Microsoft Dynamics CRM 2011时出现“Microsoft.Crm.Setup.Common.Analyzer+CollectAction 操作失败”的解决办法
    Microsoft Dynamics CRM4.0 控制是否显示 '设置Setting’ 区域
    Microsoft CRM "您查看的网页正在试图关闭窗口" 不能自动关闭的解决办法
    Dynamics CRM 2011 Ribbon 默认收起collapse和隐藏hide
    Microsoft Dynamics CRM4.0 在线用户检测(Online user detect)
    C语言I博客作业03
    C语言I博客作业06
    第一次作业
  • 原文地址:https://www.cnblogs.com/wujingcqu/p/4042372.html
Copyright © 2011-2022 走看看