<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[mass edit and preserve timestamp?]]></title><description><![CDATA[<p dir="auto">I have handful of markdown files to edit and change in some of them the path to images. I know, i can do this with “Find in files” / Replace function. But i would like to ask if it is possible to preserve the timestamp of the files, because the original timestamp is important for a sync application. Is that possible and how can i do that?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17042/mass-edit-and-preserve-timestamp</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 21:35:54 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17042.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Feb 2019 20:37:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mass edit and preserve timestamp? on Sat, 02 Feb 2019 21:48:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/offerel" aria-label="Profile: Offerel">@<bdi>Offerel</bdi></a></p>
<p dir="auto">aaaaaaahh, nice idea to use dummy_file as a temporary timestamp reference file. 👍👍👍</p>
<p dir="auto">thanks for sharing 👍, i too think that it might come in handy for others.<br />
there are quite a few linux and mac users around here, including me.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/39274</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39274</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sat, 02 Feb 2019 21:48:07 GMT</pubDate></item><item><title><![CDATA[Reply to mass edit and preserve timestamp? on Sat, 02 Feb 2019 21:08:26 GMT]]></title><description><![CDATA[<p dir="auto">many thx for that suggestion. In the meantime i have written a short bash script to do the change on server side (Linux).<br />
I created a file <a href="http://edit.sh" rel="nofollow ugc">edit.sh</a> with the following content:</p>
<pre><code>for files in /media/mount/user/files/Notes/*.md
do
    touch -r "$files" "dummy_file"
    sed -i 's/.\/media\//.\/.media\//g' "$files"
    touch -r "dummy_file" "$files"
done
</code></pre>
<p dir="auto">Maybe its useful for others. What it odes is the following: it gets all *.md file in the above directory and replace “/media/” with “/.media/”. It uses sed for this. the backslash is only to escape the slash. If i find he time and need that function more, i try to find a better solution.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/39272</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39272</guid><dc:creator><![CDATA[Offerel]]></dc:creator><pubDate>Sat, 02 Feb 2019 21:08:26 GMT</pubDate></item><item><title><![CDATA[Reply to mass edit and preserve timestamp? on Sat, 02 Feb 2019 20:57:11 GMT]]></title><description><![CDATA[<p dir="auto">welcome to the notepad++ community, <a class="plugin-mentions-user plugin-mentions-a" href="/user/offerel" aria-label="Profile: Offerel">@<bdi>Offerel</bdi></a></p>
<p dir="auto">unfortunately notepad++ can not control the file modification time, and i currently know of no existing plugin that can inject data into files, without changing the time stamps.</p>
<p dir="auto">one thing you could do, is to use tools like <a href="http://www.nirsoft.net/utils/bulk_file_changer.html" rel="nofollow ugc">BulkFileChanger</a>  to modify your timestamps after your replaces.<br />
you could also make a batch script to read and save all timestamps within a folder, make your changes, and restore the timestamps afterwards.</p>
<p dir="auto">note: BulkFileChanger is limited command line scriptable, but there are probably  better file modification command line tools around, if you want to make a batch script for your needs.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/39271</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39271</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sat, 02 Feb 2019 20:57:11 GMT</pubDate></item></channel></rss>