January 16, 2007
Awk saves the day
Solved a minor script problem by using awk. I needed the script that uploads the sensor data to the website to keep trying until the data was uploaded and processed. I was having trouble comparing variables because /bin/sh treated spaces as a field separator. I used awk to seperate the fields using a ‘;’. This allowed me to compare the data fields instead of the entire line.