1 example for gpspipe

{{ score }}
  # Saves raw nmea strings from GPS serial device to file and stdout 
gpspipe -r | tee position.nmea

# Get current date and time from gpspipe and set system time
GPSDATE=`gpspipe -w | head -10 | grep TPV | sed -r 's/.*"time":"([^"]*)".*/\1/' | head -1`
date -s "$GPSDATE"