iceman4000000
Programmer
Hi everyone, I have a file containing just a column of numbers. Percentages to be precise. This file is named "temp1". I am trying to write a simple shell script that will take the last two numbers in the column and compare them. The idea is, that these numbers are produced from a cron job which measures disk space (df -k) and outputs the percentages to "temp1". I will then tail -2 temp1. The problem is, how do I compare the number values on the two lines? I'd greatly appreciate your help...
iceman
iceman