13 lines
354 B
Bash
Executable File
13 lines
354 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sh case1/code.sh |grep -v 'data*' | grep -v 'start*' |grep -v '.docker*' > result.txt
|
|
sh case1/answer.sh |grep -v 'data*' | grep -v 'start*' |grep -v '.docker*' > answer.txt
|
|
|
|
diff result.txt answer.txt > /dev/null
|
|
if [ $? = 0 ]; then
|
|
cat result.txt
|
|
else
|
|
echo "你的答案不是最佳答案,请继续修改。"
|
|
cat result.txt
|
|
fi
|