Replace timestamps in a notepad++ file












0















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.










share|improve this question

























  • 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











  • Okay, I will investigate. Thank you again for helping me out!

    – Axel Karlsson
    Dec 18 '18 at 20:45
















0















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.










share|improve this question

























  • 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











  • Okay, I will investigate. Thank you again for helping me out!

    – Axel Karlsson
    Dec 18 '18 at 20:45














0












0








0








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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



















  • 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











  • 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










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
});


}
});














draft saved

draft discarded


















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
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

RAC Tourist Trophy