#!/bin/sh # Extract pure NMEA from an emailed gpsd error log. # The output can be fed to gpsd via the -T l option. sed -n -e "/^> */s///" -e "/gpsd: <= GPS: /s///" -e '/^\$/p'