I have a file which extract the price of a product. But when I compare the price with another value, the comparison does not go true.
The following is the code
        price= cat temp.html | sed 's/,/\n/g'  | grep -m 1 "selling_price" | sed 's/:/\n/g' | tail -n1;
        target=15
        echo $price
        if [[ $price -gt $target ]];  then
        echo $url;
        exit
        fi
But if I change the extraction price with specific price then it goes true.
        price=16
        target=15
        echo $price
        if [[ $price -gt $target ]];  then
        echo $url;
        exit
        fi
