shell-function 删除目录和文件

function sDelDirFile() {
	if [ "$#" -eq 1 ];then
		if [ -e "$1"  ];then
			rm "$1" -rf
			echo "delete:$1"
		else
			echo "no exist:$1"
		fi
	else
		echo "function sDelDirFile:argc must is 1"
	fi
}
原文地址:https://www.cnblogs.com/smallredness/p/11211522.html