我写了这段代码:
echo -n "Enter a number1 "
echo -n "Enter a number2 "
read R1
read R2
while [ "$R1" < "$R2"]
do
if [ $((R1 % 2)) -eq 0 ]; then
$R3=$R1
echo "Number is $R3"
else
echo "Nothing"
fi
done
我不明白为什么它总是给我这个错误 bash: 8]: No such file or directory