#!/bin/bash echo "第一个数字" read a echo "第二个数字" read b if [ $a -gt $b ] then echo "$a 更大" elif [ $a -lt $b ] then echo "$b 更大" else echo "相同"