gpsbabel

Converts, uploads, and downloads GPS waypoints, tracks, and routes

brewmacoslinux
Try with needOr install directly
Source

About

Converts/uploads GPS waypoints, tracks, and routes

Commands

gpsbabel

Examples

Convert GPS data from GPX format to KML format$ gpsbabel -i gpx -f input.gpx -o kml -F output.kml
Extract waypoints from a Garmin device and save as GPX$ gpsbabel -i garmin -f usb: -o gpx -F waypoints.gpx
Merge multiple GPX files into a single file$ gpsbabel -i gpx -f track1.gpx -i gpx -f track2.gpx -o gpx -F combined.gpx