From 179034104d8c3d86fab1e721d10c82f973b80337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=86=A0=E7=BE=A4?= Date: Tue, 20 Oct 2020 18:14:49 +0800 Subject: [PATCH] Edit by browser --- step2/2.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 +