summaryrefslogtreecommitdiff
path: root/devtools/logextract
blob: 42a084806c0c5c81fd0b2ca0bf76eaed61062d06 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# Extract pure NMEA from an emailed gpsd error log.
# The output can be fed to gpsfake.
#
# This file is Copyright (c) 2010 by the GPSD project
# BSD terms apply: see the file COPYING in the distribution root for details.
sed -n -e "/^> */s///" -e "/gpsd: <= GPS: /s///" -e '/^\$/p'