#! /bin/bash
x=5.2
if [ $x -gt 7.5 ]
then
mail -s "$x is greater than 25" email@address
fi
when i run this code i am getting error intger expression required.
plz tell me how to define this x ??
x=5.2
if [ $x -gt 7.5 ]
then
mail -s "$x is greater than 25" email@address
fi
when i run this code i am getting error intger expression required.
plz tell me how to define this x ??
Comment