1 2 3 4 5 6 7 8 9 10 11 12
#! /bin/bash while read line do if [ -n "$line" ] then echo $line fi if [ "${line#\$GPVTG}" != "$line" ] then sleep 1 fi done <$1