From c6d3ccce244bea71943912e05955c462ca534654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=86=A0=E7=BE=A4?= Date: Fri, 16 Oct 2020 16:21:24 +0800 Subject: [PATCH] Edit by browser --- step1/jiance.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/step1/jiance.sh b/step1/jiance.sh index a127a7e..315aff8 100644 --- a/step1/jiance.sh +++ b/step1/jiance.sh @@ -1,7 +1,17 @@ #!/bin/bash - + cd /data/workspace/myshixun/step1/ sh ./daan.sh -cat ./daan.sh |grep rm -cat ./daan.sh |grep echo \ No newline at end of file + +a='rm' +b='echo' + +if cat daan.sh|grep "$a">/dev/null +then + echo "使用rm属于作弊行为" +if cat daan.sh|grep "$b">/dev/null +then + echo "使用echo属于作弊行为" +fi +fi \ No newline at end of file