by dc-programmer · 3y ago · 0 comments
The problem was that the Garmin GPS data for a bike ride I had just completed had split into multiple rides. I used AWK to stitch together the data into one file. I also did some basic linear interpolation to fill in missing data points.
The GPS data is formatted as XML and I was able to parse it fairly robustly using AWK.
Depending on how the xml is structured, it can be possible to just pattern match on the tags if you have something simple to do.