Alex Donald
  • Projects
  • Reference
  • About
  • Contact

Delete empty directories

13 January, 2016
CLI • Bash
Source: http://duramecho.com/ComputerPrograms/DeleteEmptyDirectories/index.html

Using find on the bash shell:

find -type d -empty -delete

Using Perl:

perl -MFile::Find -e"finddepth(sub{rmdir},'.')"
© 2022 Alex Donald · pgp.txt