(standard_in)1:解析错误

(standard_in)1:解析错误

这是我的脚本:

#!/bin/sh
# 5. Write a Shell Program to Find the Area & Circumference of a Circle
echo "Enter the Radius"
read radius
arear=`echo 3.14 \* $radius \* $radius |bc`
circu=`echo 2 \* 3.14 \* $radius |bc`
echo "Area of the Circle="$arear
echo "Circumference of the Circle="$circu

它给出的错误如下:

==============================================
[root@vision aiwa]#sh area.sh
Enter the Radius
9
': not a valid identifieradius
(standard_in) 1: parse error
(standard_in) 2: parse error
Area of the Circle =
Circumference of the Circle =
[root@vision aiwa]#

为什么我会收到此错误?

相关内容