File: logextract

package info (click to toggle)
gpsd 3.27-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,056 kB
  • sloc: ansic: 74,438; python: 16,521; sh: 890; cpp: 848; php: 225; makefile: 197; perl: 111; javascript: 26; xml: 11
file content (9 lines) | stat: -rwxr-xr-x 253 bytes parent folder | download | duplicates (4)
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 2010 by the GPSD project
# SPDX-License-Identifier: BSD-2-clause
sed -n -e "/^> */s///" -e "/gpsd: <= GPS: /s///" -e '/^\$/p'