原创 比較2個數值的大小 + centos 7.3

[root@node1 shell]# cat compare.sh #/bin/bash read -p "請輸入第一個數:" aread -p "請輸入第二個數:" b if [ $a -eq $b ]thenecho " $a=$b

原创 考試成績 + centos 7.3

root@node1 shell]# cat scores.sh #!/bin/bash#By author lansefenghuoread -p "Please input the scores:" scoresif [ $sco