diff --git a/step2/2.sh b/step2/2.sh index 504ffe7..9a54f99 100644 --- a/step2/2.sh +++ b/step2/2.sh @@ -1,4 +1,16 @@ #!/bin/bash #/bin/sbin cd /data/workspace/myshixun/step2/ -sh ./wenti.sh \ No newline at end of file +#sh ./wenti.sh +# 执行学生代码文件 + +result=$(grep -c -E "China|Mars" a.sh) + +if [ $result -eq 0 ];then + echo `sh a.sh` >/tmp/a.txt + python3 b.py + +else + echo "请正确编写代码,不要手动echo 差集" +fi +