shell删除目录下的隐藏文件夹和空文件夹

#!/bin/bash
# 删除目录下的隐藏文件夹和空文件夹
count=0;
while (( $count < 2 ));
do
  rm -rf $(find . -name "*" -type f -size 0c);
  find -type d -empty | xargs rm -rf;
  find -type d -empty | xargs rm -rf {};
  ((count=$count+1)); 
done;
#!/bin/bash
# 删除 .svn 目录
find . -type d -name ".svn"|xargs rm -rf