Created
June 13, 2019 18:22
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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