Skip to content

Instantly share code, notes, and snippets.

@Ana06
Created June 13, 2019 18:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ana06/aeb145ad6fe64e11fb7e71681ff00476 to your computer and use it in GitHub Desktop.
Save Ana06/aeb145ad6fe64e11fb7e71681ff00476 to your computer and use it in GitHub Desktop.
Small script to merge two gpx routes (1.gpx for the first part and 2.gpx for the second) into route.gpx
sed -i '/^\s*<\/trk>$/Q' 1.gpx
sed -i '1,/^\s*<trk>/d' 2.gpx
cat 1.gpx 2.gpx > route.gpx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment