shell-function 删除目录和文件

mac2022-06-30  25

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

最新回复(0)