Replace timestamps in a notepad++ file
I have these GPX files that I want to change the time in, and I'm not sure how to automate it.
<time>2018-10-25T18:00:00Z</time>
<time>2018-10-25T18:02:24Z</time>
<time>2018-10-25T18:03:35Z</time>
There are about 70 of these lines in every file and about 25 files. Currently, the total timespan is 1 hour and 26 minutes but I want to make it shorter, 26 minutes long. I figured that I could use the replace function in notepad++ but I'm not very proficient in coding, and so I'm not sure how to automate this otherwise tedious process.
Currently the first line of code says <time>2018-10-25T18:00:00Z</time>
and the last one says <time>2018-10-25T19:27:28Z</time>
, and there are 70 lines in between. I would like to make so that I can change the last line to <time>2018-10-25T18:26:00Z</time>
and change all the ones in between so that they fit accordingly.
notepad++ timestamp gps
add a comment |
I have these GPX files that I want to change the time in, and I'm not sure how to automate it.
<time>2018-10-25T18:00:00Z</time>
<time>2018-10-25T18:02:24Z</time>
<time>2018-10-25T18:03:35Z</time>
There are about 70 of these lines in every file and about 25 files. Currently, the total timespan is 1 hour and 26 minutes but I want to make it shorter, 26 minutes long. I figured that I could use the replace function in notepad++ but I'm not very proficient in coding, and so I'm not sure how to automate this otherwise tedious process.
Currently the first line of code says <time>2018-10-25T18:00:00Z</time>
and the last one says <time>2018-10-25T19:27:28Z</time>
, and there are 70 lines in between. I would like to make so that I can change the last line to <time>2018-10-25T18:26:00Z</time>
and change all the ones in between so that they fit accordingly.
notepad++ timestamp gps
Could you give an example of what you wish to change the times to? Use the EDIT button to add this to your question.
– music2myear
Dec 18 '18 at 20:01
NP++ is not really the tool for this, but see this answer. It's comparatively easy to do in LInux, so you should investigate Windows ports ofbash
,date
andsed
. You can use WSL on Windows 10, or CygWin on most Windows versions. You can also find individual ports,bash.exe
,date.exe
andsed.exe
.
– AFH
Dec 18 '18 at 20:24
Okay, I will investigate. Thank you again for helping me out!
– Axel Karlsson
Dec 18 '18 at 20:45
add a comment |
I have these GPX files that I want to change the time in, and I'm not sure how to automate it.
<time>2018-10-25T18:00:00Z</time>
<time>2018-10-25T18:02:24Z</time>
<time>2018-10-25T18:03:35Z</time>
There are about 70 of these lines in every file and about 25 files. Currently, the total timespan is 1 hour and 26 minutes but I want to make it shorter, 26 minutes long. I figured that I could use the replace function in notepad++ but I'm not very proficient in coding, and so I'm not sure how to automate this otherwise tedious process.
Currently the first line of code says <time>2018-10-25T18:00:00Z</time>
and the last one says <time>2018-10-25T19:27:28Z</time>
, and there are 70 lines in between. I would like to make so that I can change the last line to <time>2018-10-25T18:26:00Z</time>
and change all the ones in between so that they fit accordingly.
notepad++ timestamp gps
I have these GPX files that I want to change the time in, and I'm not sure how to automate it.
<time>2018-10-25T18:00:00Z</time>
<time>2018-10-25T18:02:24Z</time>
<time>2018-10-25T18:03:35Z</time>
There are about 70 of these lines in every file and about 25 files. Currently, the total timespan is 1 hour and 26 minutes but I want to make it shorter, 26 minutes long. I figured that I could use the replace function in notepad++ but I'm not very proficient in coding, and so I'm not sure how to automate this otherwise tedious process.
Currently the first line of code says <time>2018-10-25T18:00:00Z</time>
and the last one says <time>2018-10-25T19:27:28Z</time>
, and there are 70 lines in between. I would like to make so that I can change the last line to <time>2018-10-25T18:26:00Z</time>
and change all the ones in between so that they fit accordingly.
notepad++ timestamp gps
notepad++ timestamp gps
edited Dec 18 '18 at 20:11
Axel Karlsson
asked Dec 18 '18 at 19:50
Axel KarlssonAxel Karlsson
11
11
Could you give an example of what you wish to change the times to? Use the EDIT button to add this to your question.
– music2myear
Dec 18 '18 at 20:01
NP++ is not really the tool for this, but see this answer. It's comparatively easy to do in LInux, so you should investigate Windows ports ofbash
,date
andsed
. You can use WSL on Windows 10, or CygWin on most Windows versions. You can also find individual ports,bash.exe
,date.exe
andsed.exe
.
– AFH
Dec 18 '18 at 20:24
Okay, I will investigate. Thank you again for helping me out!
– Axel Karlsson
Dec 18 '18 at 20:45
add a comment |
Could you give an example of what you wish to change the times to? Use the EDIT button to add this to your question.
– music2myear
Dec 18 '18 at 20:01
NP++ is not really the tool for this, but see this answer. It's comparatively easy to do in LInux, so you should investigate Windows ports ofbash
,date
andsed
. You can use WSL on Windows 10, or CygWin on most Windows versions. You can also find individual ports,bash.exe
,date.exe
andsed.exe
.
– AFH
Dec 18 '18 at 20:24
Okay, I will investigate. Thank you again for helping me out!
– Axel Karlsson
Dec 18 '18 at 20:45
Could you give an example of what you wish to change the times to? Use the EDIT button to add this to your question.
– music2myear
Dec 18 '18 at 20:01
Could you give an example of what you wish to change the times to? Use the EDIT button to add this to your question.
– music2myear
Dec 18 '18 at 20:01
NP++ is not really the tool for this, but see this answer. It's comparatively easy to do in LInux, so you should investigate Windows ports of
bash
, date
and sed
. You can use WSL on Windows 10, or CygWin on most Windows versions. You can also find individual ports, bash.exe
, date.exe
and sed.exe
.– AFH
Dec 18 '18 at 20:24
NP++ is not really the tool for this, but see this answer. It's comparatively easy to do in LInux, so you should investigate Windows ports of
bash
, date
and sed
. You can use WSL on Windows 10, or CygWin on most Windows versions. You can also find individual ports, bash.exe
, date.exe
and sed.exe
.– AFH
Dec 18 '18 at 20:24
Okay, I will investigate. Thank you again for helping me out!
– Axel Karlsson
Dec 18 '18 at 20:45
Okay, I will investigate. Thank you again for helping me out!
– Axel Karlsson
Dec 18 '18 at 20:45
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385686%2freplace-timestamps-in-a-notepad-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385686%2freplace-timestamps-in-a-notepad-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Could you give an example of what you wish to change the times to? Use the EDIT button to add this to your question.
– music2myear
Dec 18 '18 at 20:01
NP++ is not really the tool for this, but see this answer. It's comparatively easy to do in LInux, so you should investigate Windows ports of
bash
,date
andsed
. You can use WSL on Windows 10, or CygWin on most Windows versions. You can also find individual ports,bash.exe
,date.exe
andsed.exe
.– AFH
Dec 18 '18 at 20:24
Okay, I will investigate. Thank you again for helping me out!
– Axel Karlsson
Dec 18 '18 at 20:45