decimal_if.sh
#! /bin/bash
num1=4.8
num2=3.6
if [ `echo "$num1 > $num2" | bc` == 1 ]; then
echo "$num1 > $num2"
fi
Go to list of users who liked
More than 5 years have passed since last update.
#! /bin/bash
num1=4.8
num2=3.6
if [ `echo "$num1 > $num2" | bc` == 1 ]; then
echo "$num1 > $num2"
fi
Register as a new user and use Qiita more conveniently
Go to list of users who liked