使用-e 判断,例如
if [ -e $FILE ] then echo $FILE 作为文件或文件夹是存在的fi
判断文件是否存在if [ -f filename ]判断目录是否存在if [ -d directory }