CentOS - Yum - Несколько URL-адресов

#!/bin/sh

read -p "Enter the width and height of rectangle in meters: " width height 

sqm=$(echo "$width * $height" | bc -l)
sqin=$(echo "$sqm * 1550" | bc -l)

echo "Area of the rectangle is: $sqm Square Meters or $sqin Square Inches."

(К вашему сведению, 1 квадратный метр равен 1550 квадратным дюймам. Я знаю это, потому что Google мне так говорит.)

Образец выполнения:

$ ./area.sh 
Enter the width and height of rectangle in meters: 3.5 4.5
Area of the rectangle is: 15.75 Square Meters or 24412.50 Square Inches.
4
30.05.2017, 23:48
1 ответ

Вы можете включить репозитории с шаблоном:

 yum --enablerepo=centos_\* install package

, но не под одним именем.

1
27.01.2020, 21:01

Теги

Похожие вопросы