<?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[Replace data on specific position by data from 2nd file]]></title><description><![CDATA[<p dir="auto">Hello everyone, can you help me with special task.<br />
I have two files. I need to get data on each line on file1 and put it to same line in file2.<br />
Source data have variable length.<br />
On target file first character starting on same position on every line -position 20.<br />
Its necessary to keep total number of characters on every line.<br />
Please see attached picture. Lines 3, 4 and 5 are edited manual.<br />
Is there any chance to create automatic process for this task?<br />
Thanks Petr<br />
<img src="/assets/uploads/files/1581189421938-replace-characters-on-line.jpg" alt="replace characters  on line.JPG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18886/replace-data-on-specific-position-by-data-from-2nd-file</link><generator>RSS for Node</generator><lastBuildDate>Thu, 19 Nov 2026 02:16:07 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18886.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Feb 2020 19:17:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Replace data on specific position by data from 2nd file on Sun, 09 Feb 2020 15:09:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi all, I found solution!<br />
1.Add 10 spaces at end of each lines in file X.REN by command $<br />
2.Copy rectangular selection 10 x number of lines in file X.REN<br />
3.Mark rectangular selection 10 x number of lines on target file in requested position and paste it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50454</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50454</guid><dc:creator><![CDATA[Petr Kurdiovský]]></dc:creator><pubDate>Sun, 09 Feb 2020 15:09:07 GMT</pubDate></item><item><title><![CDATA[Reply to Replace data on specific position by data from 2nd file on Sun, 09 Feb 2020 14:07:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi Mr. guy038<br />
I guess I’m doing something wrong.<br />
Here is link to my files :<a href="http://moja.uschovna.zoznam.sk/link/f5ff1fd3-7cc1-4e94-9f59-bceba1f52445?utm_source=link&amp;utm_medium=referral&amp;utm_campaign=sharing" rel="nofollow ugc">link text</a><br />
In the file <a href="http://X.COM" rel="nofollow ugc">X.COM</a> are two lines like heather<br />
and next 3 lines edited manual -this is correct format I need.<br />
Please, can you check if its working?<br />
Thanks Petr</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50448</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50448</guid><dc:creator><![CDATA[Petr Kurdiovský]]></dc:creator><pubDate>Sun, 09 Feb 2020 14:07:12 GMT</pubDate></item><item><title><![CDATA[Reply to Replace data on specific position by data from 2nd file on Sun, 09 Feb 2020 12:36:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/petr-kurdiovsk%C3%BD" aria-label="Profile: petr-kurdiovský">@<bdi>petr-kurdiovský</bdi></a>, and <strong>All</strong>,</p>
<p dir="auto">Ah, OK ! I assumed that you wanted to <strong>populate</strong> your <strong><code>xCOM</code></strong> file, with columns from the <strong>leftmost</strong> till the <strong>rightmost</strong> !</p>
<p dir="auto">If you don’t respect that order, here is a … <strong>regex</strong> solution, again !  Let’s suppose you <strong>always</strong> need <strong><code>S</code></strong> <strong>space</strong> characters <em>AFTER</em>  column <strong><code>C</code></strong>, <strong>included</strong>. Then use the following <strong>generic</strong> regex S/R :</p>
<p dir="auto">SEARCH <strong><code>(?-s)^.{C}\K\x20+</code></strong></p>
<p dir="auto">SEARCH <strong><code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</code></strong></p>
<p dir="auto"><strong>Remark</strong> : Unfortunately, in <strong>replacement</strong> regexes, you <strong>cannot</strong> use the syntax <strong><code>\x20{S}</code></strong>, where <strong>S</strong> = <strong><code>10</code></strong> in your case. But, instead of writing <strong><code>10</code></strong> times the <strong><code>\x20</code></strong> syntax, you may, of course just type in <strong>ten</strong> <strong><code>space</code></strong> chars, with the <strong><code>Space</code></strong> key, in the <strong>replacement</strong> zone !</p>
<p dir="auto">Finally, don’t forget to perform my <strong>previous</strong> regex S/R to <strong>normalize</strong> all the lines of your table to their <strong>common</strong> <strong><code>L</code></strong> length !</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50437</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50437</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 09 Feb 2020 12:36:31 GMT</pubDate></item><item><title><![CDATA[Reply to Replace data on specific position by data from 2nd file on Sun, 09 Feb 2020 08:40:47 GMT]]></title><description><![CDATA[<p dir="auto">Hello, I found another problem.<br />
In case the target file already have data in another column /for example on position 31/ the format of file is corrupted because I remove extra spaces on end of line.<br />
I need remove spaces on right side 31 position.<br />
Thanks Petr<br />
<img src="/assets/uploads/files/1581237535610-replace-characters-on-line2.jpg" alt="replace characters  on line2.JPG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/50430</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50430</guid><dc:creator><![CDATA[Petr Kurdiovský]]></dc:creator><pubDate>Sun, 09 Feb 2020 08:40:47 GMT</pubDate></item><item><title><![CDATA[Reply to Replace data on specific position by data from 2nd file on Sat, 08 Feb 2020 20:25:29 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Mr. guy038<br />
Your guide works perfect.<br />
Best Regards Petr</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50427</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50427</guid><dc:creator><![CDATA[Petr Kurdiovský]]></dc:creator><pubDate>Sat, 08 Feb 2020 20:25:29 GMT</pubDate></item><item><title><![CDATA[Reply to Replace data on specific position by data from 2nd file on Sat, 08 Feb 2020 20:03:35 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/petr-kurdiovsk%C3%BD" aria-label="Profile: petr-kurdiovský">@<bdi>petr-kurdiovský</bdi></a>,</p>
<p dir="auto">From your <strong>picture</strong>, the last <strong><code>0</code></strong>, in line <strong><code>3</code></strong>, seems at position <strong><code>21</code></strong>, not <strong>20</strong> ?</p>
<p dir="auto">Anyway, here is one method :</p>
<ul>
<li>
<p dir="auto">Firstly, you could use the <strong>column mode</strong> feature to catch your column of <strong>numbers</strong>, in your <strong><code>xREN</code></strong> file and <strong>copy</strong> this selection</p>
</li>
<li>
<p dir="auto">Secondly, <strong>paste</strong> this <strong>rectangular</strong> selection, in line <strong><code>3</code></strong>, at column <strong><code>20</code></strong> ( or <strong><code>21</code></strong> ! ) of your <strong><code>xCOM</code></strong> file</p>
</li>
<li>
<p dir="auto">Thirdly, if <strong><code>L</code></strong> represents the <strong>identical</strong> number of chars of <strong>each</strong> line :</p>
<ul>
<li>
<p dir="auto">Select your <strong><code>xCOM</code></strong> file</p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?-s)^.{L}\K\x20+</code></strong> ( Of course, replace the <strong>literal</strong> value <strong><code>L</code></strong> with a number <strong><code>110</code></strong>, <strong><code>115</code></strong>, <strong><code>120</code></strong>, … )</p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
</li>
<li>
<p dir="auto">Tick the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click, <strong>exclusively</strong>, on the <strong><code>Replace All</code></strong> button</p>
</li>
</ul>
</li>
</ul>
<p dir="auto">Et voilà !</p>
<p dir="auto"><strong>Remark</strong> : The <strong>nice</strong> thing is you could paste a lost of columns ( <strong>rectangular</strong> selections ) and, <strong>only</strong> at the <strong>end</strong>, perform the <strong>regex</strong> S/R !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50426</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50426</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 08 Feb 2020 20:03:35 GMT</pubDate></item></channel></rss>