Implemented #1

This commit is contained in:
floraachy 2024-10-25 14:42:04 +08:00
parent 5781e285bf
commit 29cc3f2ad1
1 changed files with 16 additions and 0 deletions

16
test.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
week=`date +%u`
if [ $week=1 ]
then echo "今天是星期一"
elif [ $week=2 ]
then echo "今天是星期二"
elif [ $week=3 ]
then echo "今天是星期三"
elif [ $week=4 ]
then echo "今天是星期四"
elif [ $week=5 ]
then echo "今天星期五"
elif [ $week=6 ]
then echo "今天是星期六"
else echo "今天是星期日"
fi