title: How to compare decimal numbers in shell script?
body: <pre><code>#!/bin/bash
  for input in $(cat status_cpu.txt)
  do
        cpu=`ssh -i  root@$input 'top -b -n1' | grep "load" | awk '{print $12}'`
  
        max=2.02
  
  if [ $(echo "$cpu &lt; $max" | bc -l ) ]; then
      echo "yes"
  else
      echo "no" 
  fi
  done  
  </code></pre>
  
  <p>cat status_cpu.txt<br>
  10.0.0.1<br>
  10.0.0.2  </p>
  
  <p>I want to compare decimal points in shell script.</p>