(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]#

このエラーが発生するのはなぜですか?

ベストアンサー1

おすすめ記事