My stab at it (there must
be a more elegant way to do this):
foo=`uptime | cut -d ',' -f4 | tr -d '.' | tr -d [:blank:] | sed -e s/^0+//`
if [ $((foo)) -gt 100 ]
echo "Load over 1.00"
echo "Load under 1.01"
BTW I suppose this could use an explanation. Suppose you got 0.06 for the load average. Here is what it would look like after each step above (cut, tr, tr, sed):
The reason you need to strip the leading 0s is because bash will assume it's octal if it starts with a 0. The $(()) around foo forces arithmatic comparison.