- Get bat-to-ext-converter and sed
- Open
bat-to-ext-converter, and wrapmerge.bat,sed.exe,merge.sedinto a single exe file - Run
signtool /a /tr http://tsa.starfieldtech.com merge.exeto sign exe file
Last active
July 26, 2020 16:19
-
-
Save typebrook/b984a04cdfc41b8c685e5de6a7383100 to your computer and use it in GitHub Desktop.
Merge all <trkseg> into a single <trk> in gpx file. Donload exe file at https://git.io/JfQeW #sed #gpx #track #trk #trkseg #bat #磐石
This file contains hidden or 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
| FOR %%f IN (*.gpx) DO sed.exe -f merge.sed %%f > merged_%%f |
This file contains hidden or 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
| /<\/trk>/ { | |
| :a | |
| N | |
| /<trkseg>/! ba | |
| s/.*\n// | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment