Linux下一次删除所有空目录的方法
Thursday, 11. January 2007, 00:59:46
程序
#!/usr/bin/perl
use File::Find;
finddepth(sub{rmdir},'.')
命令
perl -MFile::Find -e"finddepth(sub{rmdir},'.')"
方法二:用 Shell Script 实现
find -depth -type d -empty -exec rmdir {} \;
以上方法来自:http://duramecho.com/ComputerPrograms/DeleteEmptyDirectories/index.html







