for loop in `cal` do echo $loop done if [ -f '002.sh' ] then echo "002.sh存在" else echo "002.sh不存在" fi