_ Script to delete a directory for the file size of 0

! # bin / bash
# function: delete a directory under the file size 0
# Author: liusingbon
# to / var / www / html directory for the test, the script will clear the directory of all 0-byte file
dir = "/ var / WWW / HTML "
Find the dir -type $ F -size 0} {-rf -exec RM \;

Guess you like

Origin www.cnblogs.com/liusingbon/p/11111106.html