#!/bin/bashdirec=$(pwd) for dir2del in $direc/* ; do if [ -d $dir2del ]; then rm -rf $dir2del fidone#该片段来自于http://www.codesnippet.cn/detail/230420132961.html
来源: http://www.codesnippet.cn/detail/230420132961.html