diff --git a/The_Unix_Workbench_Johns_Hopkins_University/guessinggame/guessinggame.sh b/The_Unix_Workbench_Johns_Hopkins_University/guessinggame/guessinggame.sh deleted file mode 100644 index c678b47..0000000 --- a/The_Unix_Workbench_Johns_Hopkins_University/guessinggame/guessinggame.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -function guess(){ - true_ans=$(ls -l |grep "^-"|wc -l) - while true; - do - echo "pleas enter your guess" - read number - if [ $number -lt $true_ans ] - then - echo "your guess is Less then the true number" - elif [ $number -gt $true_ans ] - then - echo "your guess is Greater then the true number" - else - echo " congratulation,you are right!" - break; - fi - done -} -echo "guess the files number in the current directory!" -guess \ No newline at end of file