<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AMigrate_WTF_script</id>
	<title>WoW:Migrate WTF script - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AMigrate_WTF_script"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;action=history"/>
	<updated>2026-04-23T05:06:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;diff=17853&amp;oldid=prev</id>
		<title>Move page script: Move page script moved page Migrate WTF script to WoW:Migrate WTF script without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;diff=17853&amp;oldid=prev"/>
		<updated>2023-08-15T04:48:52Z</updated>

		<summary type="html">&lt;p&gt;Move page script moved page &lt;a href=&quot;/wiki/WoW:Migrate_WTF_script&quot; title=&quot;WoW:Migrate WTF script&quot;&gt;Migrate WTF script&lt;/a&gt; to &lt;a href=&quot;/wiki/WoW:Migrate_WTF_script&quot; title=&quot;WoW:Migrate WTF script&quot;&gt;Migrate WTF script&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:48, 15 August 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key addonstu_asmw2:diff::1.12:old-17852:rev-17853 --&gt;
&lt;/table&gt;</summary>
		<author><name>Move page script</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;diff=17852&amp;oldid=prev</id>
		<title>WoWWiki&gt;Jagwatoof: HTML tidying - changed &lt; before &quot;source&quot; to %lt; to prevent display error</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;diff=17852&amp;oldid=prev"/>
		<updated>2008-07-02T07:38:30Z</updated>

		<summary type="html">&lt;p&gt;HTML tidying - changed &amp;lt; before &amp;quot;source&amp;quot; to %lt; to prevent display error&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:38, 2 July 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The script can be stored and run from anywhere.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The script can be stored and run from anywhere.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;migrateWTF.sh -a &amp;lt;account name&amp;gt; [-s &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;&lt;/del&gt;source dir&amp;gt;] [-d &amp;lt;destination dir&amp;gt;] -f &amp;lt;realm from&amp;gt; -t &amp;lt;realm to&amp;gt; {-o &amp;lt;old name&amp;gt; -n &amp;lt;new name&amp;gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;migrateWTF.sh -a &amp;lt;account name&amp;gt; [-s &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;lt;&lt;/ins&gt;source dir&amp;gt;] [-d &amp;lt;destination dir&amp;gt;] -f &amp;lt;realm from&amp;gt; -t &amp;lt;realm to&amp;gt; {-o &amp;lt;old name&amp;gt; -n &amp;lt;new name&amp;gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &amp;lt;b&amp;gt;-a &amp;lt;account name&amp;gt;&amp;lt;/b&amp;gt; || || Name of the account in capitals; this is the directory under World of Warcraft/WTF/Account&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &amp;lt;b&amp;gt;-a &amp;lt;account name&amp;gt;&amp;lt;/b&amp;gt; || || Name of the account in capitals; this is the directory under World of Warcraft/WTF/Account&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &amp;lt;b&amp;gt;-s &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;&lt;/del&gt;source dir&amp;gt;&amp;lt;/b&amp;gt; || (optional) || Source installation directory, defaults to /Applications/World of Warcraft&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &amp;lt;b&amp;gt;-s &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;lt;&lt;/ins&gt;source dir&amp;gt;&amp;lt;/b&amp;gt; || (optional) || Source installation directory, defaults to /Applications/World of Warcraft&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &amp;lt;b&amp;gt;-d &amp;lt;destination dir&amp;gt;&amp;lt;/b&amp;gt; || (optional) || Destination installation directory, defaults to /Applications/World of Warcraft/WoWTest&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &amp;lt;b&amp;gt;-d &amp;lt;destination dir&amp;gt;&amp;lt;/b&amp;gt; || (optional) || Destination installation directory, defaults to /Applications/World of Warcraft/WoWTest&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key addonstu_asmw2:diff::1.12:old-17851:rev-17852 --&gt;
&lt;/table&gt;</summary>
		<author><name>WoWWiki&gt;Jagwatoof</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;diff=17851&amp;oldid=prev</id>
		<title>WoWWiki&gt;Nemes2: /* migrateWTF.sh */</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;diff=17851&amp;oldid=prev"/>
		<updated>2008-03-15T06:27:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;migrateWTF.sh&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:27, 15 March 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l111&quot;&gt;Line 111:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 111:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     PRINTED=0&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     PRINTED=0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     echo &amp;quot;Modifying lua files in ${PWD}:&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     echo &amp;quot;Modifying lua files in ${PWD}:&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     for F in *.lua; do&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LUA_FILE_LIST=$(ls *.lua 2&amp;gt;&amp;amp;1 &amp;gt; /dev/null)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/del&gt;if [[ ${PRINTED} -gt 2 ]]; then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    if [[ ${?} -eq 0 ]]; then&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/del&gt;PRINTED=0&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/ins&gt;for F in *.lua; do&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/del&gt;printf &amp;quot;\n&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/ins&gt;if [[ ${PRINTED} -gt 2 ]]; then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/del&gt;else&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                &lt;/ins&gt;PRINTED=0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/del&gt;PRINTED=$((${PRINTED}+1))&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                &lt;/ins&gt;printf &amp;quot;\n&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/del&gt;fi&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/ins&gt;else&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/del&gt;printf &amp;quot;\t${F}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                &lt;/ins&gt;PRINTED=$((${PRINTED}+1))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/del&gt;sed -f &amp;quot;${SCRIPT}&amp;quot; &amp;quot;${F}&amp;quot; &amp;gt; &amp;quot;${F}.new&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/ins&gt;fi&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/del&gt;chkrc ${?} &amp;quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Error &lt;/del&gt;executing sed on ${F}, with command file ${SCRIPT}, exiting&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/ins&gt;printf &amp;quot;\t${F}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/del&gt;mv &amp;quot;${F}.new&amp;quot; &amp;quot;${F}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/ins&gt;sed -f &amp;quot;${SCRIPT}&amp;quot; &amp;quot;${F}&amp;quot; &amp;gt; &amp;quot;${F}.new&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;done&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/ins&gt;chkrc ${?} &amp;quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\nError &lt;/ins&gt;executing sed on ${F}, with command file ${SCRIPT}, exiting&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;printf &amp;quot;\n&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/ins&gt;mv &amp;quot;${F}.new&amp;quot; &amp;quot;${F}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/ins&gt;done&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/ins&gt;printf &amp;quot;\n&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    fi&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l225&quot;&gt;Line 225:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 228:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     chkrc ${?} &amp;quot;Error during remove, exiting&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     chkrc ${?} &amp;quot;Error during remove, exiting&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;fi&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;fi&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;echo &amp;quot;Copying ${SRC}/WTF to ${DST}/WTF&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;echo &amp;quot;Copying ${SRC}/WTF&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/config.wtf, ${SRC}/WTF/Account &lt;/ins&gt;to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;${DST}/WTF&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;cp -r &amp;quot;${SRC}/WTF&amp;quot; &amp;quot;${DST}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mkdir &amp;quot;&lt;/ins&gt;${DST}/WTF&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;cp -r &amp;quot;${SRC}/WTF&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/config.wtf&amp;quot; &amp;quot;${SRC}/WTF/Account&lt;/ins&gt;&amp;quot; &amp;quot;${DST}&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/WTF&lt;/ins&gt;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;chkrc ${?} &amp;quot;Error during copy, exiting&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;chkrc ${?} &amp;quot;Error during copy, exiting&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l265&quot;&gt;Line 265:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 269:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         cd ${D}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         cd ${D}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         modifyLUA &amp;quot;${SED_FILE}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         modifyLUA &amp;quot;${SED_FILE}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         cd SavedVariables&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;if [[ -d SavedVariables ]]; then&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/del&gt;modifyLUA &amp;quot;${SED_FILE}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/ins&gt;cd SavedVariables&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/del&gt;cd ..&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/ins&gt;modifyLUA &amp;quot;${SED_FILE}&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;            &lt;/ins&gt;cd ..&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        fi&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         cd ..&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         cd ..&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     fi&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     fi&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key addonstu_asmw2:diff::1.12:old-17850:rev-17851 --&gt;
&lt;/table&gt;</summary>
		<author><name>WoWWiki&gt;Nemes2</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;diff=17850&amp;oldid=prev</id>
		<title>WoWWiki&gt;Fandyllic at 22:59, 3 March 2008</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;diff=17850&amp;oldid=prev"/>
		<updated>2008-03-03T22:59:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:59, 3 March 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l284&quot;&gt;Line 284:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 284:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;fi&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;fi&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Guides]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key addonstu_asmw2:diff::1.12:old-17849:rev-17850 --&gt;
&lt;/table&gt;</summary>
		<author><name>WoWWiki&gt;Fandyllic</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;diff=17849&amp;oldid=prev</id>
		<title>WoWWiki&gt;Egingell: Added one more &quot;situation&quot;</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;diff=17849&amp;oldid=prev"/>
		<updated>2008-03-02T07:51:26Z</updated>

		<summary type="html">&lt;p&gt;Added one more &amp;quot;situation&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:51, 2 March 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Copying your WTF to the test realm installation&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Copying your WTF to the test realm installation&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Moving your characters from one realm to another&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Moving your characters from one realm to another&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Forced to rename your character&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The script was developed and tested on a Mac, however it can be run on Linux as-is and on Windows via [http://cygwin.com/ cygwin].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The script was developed and tested on a Mac, however it can be run on Linux as-is and on Windows via [http://cygwin.com/ cygwin].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key addonstu_asmw2:diff::1.12:old-17848:rev-17849 --&gt;
&lt;/table&gt;</summary>
		<author><name>WoWWiki&gt;Egingell</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;diff=17848&amp;oldid=prev</id>
		<title>WoWWiki&gt;Nemes2: New page: == Intoduction ==  The following script allows you to change the realm / character names within your WTF. It is used in the following situations: * Copying your WTF to the test realm insta...</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:Migrate_WTF_script&amp;diff=17848&amp;oldid=prev"/>
		<updated>2008-03-02T03:11:22Z</updated>

		<summary type="html">&lt;p&gt;New page: == Intoduction ==  The following script allows you to change the realm / character names within your WTF. It is used in the following situations: * Copying your WTF to the test realm insta...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Intoduction ==&lt;br /&gt;
&lt;br /&gt;
The following script allows you to change the realm / character names within your WTF. It is used in the following situations:&lt;br /&gt;
* Copying your WTF to the test realm installation&lt;br /&gt;
* Moving your characters from one realm to another&lt;br /&gt;
&lt;br /&gt;
The script was developed and tested on a Mac, however it can be run on Linux as-is and on Windows via [http://cygwin.com/ cygwin].&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
The script can be stored and run from anywhere.&lt;br /&gt;
&lt;br /&gt;
 migrateWTF.sh -a &amp;lt;account name&amp;gt; [-s &amp;lt;source dir&amp;gt;] [-d &amp;lt;destination dir&amp;gt;] -f &amp;lt;realm from&amp;gt; -t &amp;lt;realm to&amp;gt; {-o &amp;lt;old name&amp;gt; -n &amp;lt;new name&amp;gt;}&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| &amp;lt;b&amp;gt;-a &amp;lt;account name&amp;gt;&amp;lt;/b&amp;gt; || || Name of the account in capitals; this is the directory under World of Warcraft/WTF/Account&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;b&amp;gt;-s &amp;lt;source dir&amp;gt;&amp;lt;/b&amp;gt; || (optional) || Source installation directory, defaults to /Applications/World of Warcraft&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;b&amp;gt;-d &amp;lt;destination dir&amp;gt;&amp;lt;/b&amp;gt; || (optional) || Destination installation directory, defaults to /Applications/World of Warcraft/WoWTest&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;b&amp;gt;-f &amp;lt;realm from&amp;gt;&amp;lt;/b&amp;gt; || || Realm you are migrating from; remember to quote it if it contains special characters&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;b&amp;gt;-f &amp;lt;realm to&amp;gt;&amp;lt;/b&amp;gt; || || Realm you are migrating to; remember to quote it if it contains special characters&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;b&amp;gt;-o &amp;lt;old name&amp;gt;&amp;lt;/b&amp;gt; || (optional, repeats) || Character name on source realm&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;b&amp;gt;-o &amp;lt;new name&amp;gt;&amp;lt;/b&amp;gt; || (optional, repeats) || Character name on destination realm&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
-o and -n must be specified in pairs; zero or many -o -n pairs may be specified.&lt;br /&gt;
&lt;br /&gt;
== Additional Information ==&lt;br /&gt;
&lt;br /&gt;
To migrate from one realm to another within the same WoW installation i.e. you have moved realms, you should specify the same -s and -d. The old configuration will be backed up to:&lt;br /&gt;
 World of Warcraft/WTF.beforemigration&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
&lt;br /&gt;
Only one account may be migrated.&lt;br /&gt;
&lt;br /&gt;
Only one realm may be migrated; you cannot have multiple from or to realms.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Migration from your realm to the test realm without renaming any characters ===&lt;br /&gt;
&lt;br /&gt;
 ./migrateWTF.sh -a NEMES11 -s &amp;quot;/Applications/World of Warcraft&amp;quot; -d &amp;quot;/Applications/World of Warcraft/WoWTest&amp;quot; -f &amp;quot;Dath&amp;#039;Remar&amp;quot; -t &amp;quot;Test Server (US PVE)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Migration from one realm to another, renaming two toons ===&lt;br /&gt;
&lt;br /&gt;
 ./migrateWTF.sh -a NEMES11 -s &amp;quot;/Applications/World of Warcraft&amp;quot; -d &amp;quot;/Applications/World of Warcraft&amp;quot; -f &amp;quot;Thunderhead&amp;quot; -t &amp;quot;Privybush&amp;quot; -o Nemes -n Nemesy -o Rhad -n Dhar&lt;br /&gt;
&lt;br /&gt;
== migrateWTF.sh ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
SRC=&amp;quot;/Applications/World of Warcraft&amp;quot;&lt;br /&gt;
DST=&amp;quot;${SRC}/WoWTest&amp;quot;&lt;br /&gt;
&lt;br /&gt;
NUM_OLD=0&lt;br /&gt;
NUM_NEW=0&lt;br /&gt;
&lt;br /&gt;
# print the usage message then exit with error&lt;br /&gt;
usage()&lt;br /&gt;
{&lt;br /&gt;
    echo&lt;br /&gt;
    echo &amp;quot;${0#*/} by nemes&amp;quot;&lt;br /&gt;
    echo&lt;br /&gt;
    echo &amp;quot;wiki: http://www.wowwiki.com/MigrateWTFscript&amp;quot;&lt;br /&gt;
    echo&lt;br /&gt;
    echo &amp;quot;usage: ${0#*/} -a &amp;lt;account name&amp;gt; [-s &amp;lt;source dir&amp;gt;] [-d &amp;lt;destination dir&amp;gt;] -f &amp;lt;realm from&amp;gt; -t &amp;lt;realm to&amp;gt; {-o &amp;lt;old name&amp;gt; -n &amp;lt;new name&amp;gt;}&amp;quot;&lt;br /&gt;
    echo &amp;quot;  -a account name in caps&amp;quot;&lt;br /&gt;
    echo &amp;quot;  -s source directory of the WOW install, defaults to /Applications/World of Warcraft&amp;quot;&lt;br /&gt;
    echo &amp;quot;  -d destination directory of the WOW install, defaults to /Applications/World of Warcraft/WoWTest&amp;quot;&lt;br /&gt;
    echo &amp;quot;  -f realm migrating from&amp;quot;&lt;br /&gt;
    echo &amp;quot;  -t realm migrating to&amp;quot;&lt;br /&gt;
    echo &amp;quot;  -o character name on source&amp;quot;&lt;br /&gt;
    echo &amp;quot;  -n character name on destination&amp;quot;&lt;br /&gt;
    echo&lt;br /&gt;
    echo &amp;quot;-o and -n must be specified in pairs; zero or many -o -n pairs may be specified&amp;quot;&lt;br /&gt;
    echo &amp;quot;when -s and -d are the same, the exiting configuration will be backed up to WTF.beforemigration&amp;quot;&lt;br /&gt;
    echo&lt;br /&gt;
    echo &amp;quot;e.g.: to migrate from your regular server to the test realm, renaming two characters:&amp;quot;&lt;br /&gt;
    echo &amp;quot;  ./${0#*/} -a NEMES11 -s \&amp;quot;/Applications/World of Warcraft\&amp;quot; -d \&amp;quot;/Applications/World of Warcraft/WoWTest\&amp;quot; -f \&amp;quot;Dath&amp;#039;Remar\&amp;quot; -t \&amp;quot;Test Server (US PVE)\&amp;quot; -o Nemes -n Nemesey -o Rhadamanth -n Rhad&amp;quot;&lt;br /&gt;
    echo&lt;br /&gt;
    echo &amp;quot;e.g.: to migrate from Thunderhead to Privybush without renaming any characters:&amp;quot;&lt;br /&gt;
    echo &amp;quot;  ./${0#*/} -a NEMES11 -s \&amp;quot;/Applications/World of Warcraft\&amp;quot; -d \&amp;quot;/Applications/World of Warcraft\&amp;quot; -f \&amp;quot;Thunderhead\&amp;quot; -t \&amp;quot;Privybush\&amp;quot;&amp;quot;&lt;br /&gt;
    echo&lt;br /&gt;
    exit 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# check the return code (first argument) and if it&amp;#039;s not success, print the second argument and exit with error&lt;br /&gt;
chkrc()&lt;br /&gt;
{&lt;br /&gt;
    RC=${1}&lt;br /&gt;
    MSG=${2}&lt;br /&gt;
    if [[ ${RC} -ne 0 ]]; then&lt;br /&gt;
        echo &amp;quot;$MSG&amp;quot;&lt;br /&gt;
        echo &amp;quot;return code: ${RC}&amp;quot;&lt;br /&gt;
        exit 1&lt;br /&gt;
    fi&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# execute the sed script (first argument) on each lua file in the current directory&lt;br /&gt;
modifyLUA()&lt;br /&gt;
{&lt;br /&gt;
    SCRIPT=${1}&lt;br /&gt;
&lt;br /&gt;
    PRINTED=0&lt;br /&gt;
    echo &amp;quot;Modifying lua files in ${PWD}:&amp;quot;&lt;br /&gt;
    for F in *.lua; do&lt;br /&gt;
        if [[ ${PRINTED} -gt 2 ]]; then&lt;br /&gt;
            PRINTED=0&lt;br /&gt;
            printf &amp;quot;\n&amp;quot;&lt;br /&gt;
        else&lt;br /&gt;
            PRINTED=$((${PRINTED}+1))&lt;br /&gt;
        fi&lt;br /&gt;
        printf &amp;quot;\t${F}&amp;quot;&lt;br /&gt;
        sed -f &amp;quot;${SCRIPT}&amp;quot; &amp;quot;${F}&amp;quot; &amp;gt; &amp;quot;${F}.new&amp;quot;&lt;br /&gt;
        chkrc ${?} &amp;quot;Error executing sed on ${F}, with command file ${SCRIPT}, exiting&amp;quot;&lt;br /&gt;
        mv &amp;quot;${F}.new&amp;quot; &amp;quot;${F}&amp;quot;&lt;br /&gt;
    done&lt;br /&gt;
    printf &amp;quot;\n&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# parse the command line options&lt;br /&gt;
while getopts &amp;quot;:s:d:f:t:o:n:a:&amp;quot; OPT; do&lt;br /&gt;
    case ${OPT} in&lt;br /&gt;
    a) ACCT=${OPTARG} ;;&lt;br /&gt;
    s) SRC=${OPTARG} ;;&lt;br /&gt;
    d) DST=${OPTARG} ;;&lt;br /&gt;
    f) FROM=${OPTARG} ;;&lt;br /&gt;
    t) TO=${OPTARG} ;;&lt;br /&gt;
    o) OLD[${NUM_OLD}]=${OPTARG}; NUM_OLD=$((${NUM_OLD}+1)) ;;&lt;br /&gt;
    n) NEW[${NUM_NEW}]=${OPTARG}; NUM_NEW=$((${NUM_NEW}+1)) ;;&lt;br /&gt;
    \?) usage&lt;br /&gt;
    esac&lt;br /&gt;
done&lt;br /&gt;
shift $((${OPTIND} - 1))&lt;br /&gt;
&lt;br /&gt;
# check from and to for existence&lt;br /&gt;
if [[ ${FROM} == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
    usage&lt;br /&gt;
fi&lt;br /&gt;
if [[ ${TO} == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
    usage&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# check the source and dest for existence&lt;br /&gt;
if [[ ! -d &amp;quot;${SRC}&amp;quot; ]]; then&lt;br /&gt;
    echo &amp;quot;${SRC} does not exist, exiting&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
fi&lt;br /&gt;
if [[ ! -d &amp;quot;${DST}&amp;quot; ]]; then&lt;br /&gt;
    echo &amp;quot;${DST} does not exist, exiting&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# check the account for existence&lt;br /&gt;
if [[ ${ACCT} == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
    usage&lt;br /&gt;
fi&lt;br /&gt;
if [[ ! -d &amp;quot;${SRC}/WTF/Account/${ACCT}&amp;quot; ]]; then&lt;br /&gt;
    echo &amp;quot;${SRC}/WTF/Account/${ACCT} does not exist, exiting&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# check that the same number of old/new names are specified&lt;br /&gt;
if [[ ${NUM_OLD} -ne ${NUM_NEW} ]]; then&lt;br /&gt;
    echo &amp;quot;Different number of old and new character names specified, exiting&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [[ ${SRC} == ${DST} ]]; then&lt;br /&gt;
    SINGLEINSTALL=1&lt;br /&gt;
else&lt;br /&gt;
    SINGLEINSTALL=0&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# tell the user what we&amp;#039;re going to do and give them a chance to stop&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;========================================&amp;quot;&lt;br /&gt;
if [[ ${SINGLEINSTALL} -eq 1 ]]; then&lt;br /&gt;
    echo &amp;quot;Performing migration for installation:&amp;quot;&lt;br /&gt;
    echo &amp;quot; ${SRC}&amp;quot;&lt;br /&gt;
    echo&lt;br /&gt;
    echo &amp;quot;Existing configuration will be stored in:&amp;quot;&lt;br /&gt;
    echo &amp;quot; ${SRC}/WTF.beforemigration&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    echo &amp;quot;Preparing to migrate WTF from:&amp;quot;&lt;br /&gt;
    echo &amp;quot; ${SRC}/WTF&amp;quot;&lt;br /&gt;
    echo &amp;quot;to&amp;quot;&lt;br /&gt;
    echo &amp;quot; ${DST}/WTF&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;Changes will be made to the World of Warcraft account: ${ACCT}&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;Realm name will be changed:&amp;quot;&lt;br /&gt;
echo &amp;quot; ${FROM} -&amp;gt; ${TO}&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;Characters renamed:&amp;quot;&lt;br /&gt;
I=0&lt;br /&gt;
while [[ ${I} -lt ${NUM_OLD} ]]; do&lt;br /&gt;
    echo &amp;quot; ${OLD[I]} -&amp;gt; ${NEW[I]}&amp;quot;&lt;br /&gt;
    I=$((${I}+1))&lt;br /&gt;
done&lt;br /&gt;
echo &amp;quot;========================================&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;Press any key to continue&amp;quot;&lt;br /&gt;
read&lt;br /&gt;
&lt;br /&gt;
# create the temporary directory for a single installation&lt;br /&gt;
if [[ ${SINGLEINSTALL} -eq 1 ]]; then&lt;br /&gt;
    DST=&amp;quot;${SRC}/migtemp&amp;quot;&lt;br /&gt;
    mkdir &amp;quot;${DST}&amp;quot;&lt;br /&gt;
    chkrc ${?} &amp;quot;Error during creation of ${DST}, exiting&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# copy the entire WTF folder, obliterating what was there&lt;br /&gt;
if [[ -d &amp;quot;${DST}/WTF&amp;quot; ]]; then&lt;br /&gt;
    echo &amp;quot;Removing ${DST}/WTF&amp;quot;&lt;br /&gt;
    rm -rf &amp;quot;${DST}/WTF&amp;quot;&lt;br /&gt;
    chkrc ${?} &amp;quot;Error during remove, exiting&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
echo &amp;quot;Copying ${SRC}/WTF to ${DST}/WTF&amp;quot;&lt;br /&gt;
cp -r &amp;quot;${SRC}/WTF&amp;quot; &amp;quot;${DST}&amp;quot;&lt;br /&gt;
chkrc ${?} &amp;quot;Error during copy, exiting&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# change the realm folder name&lt;br /&gt;
echo &amp;quot;Changing realm folder name from ${FROM} to ${TO}&amp;quot;&lt;br /&gt;
mv &amp;quot;${DST}/WTF/Account/${ACCT}/${FROM}&amp;quot; &amp;quot;${DST}/WTF/Account/${ACCT}/${TO}&amp;quot;&lt;br /&gt;
chkrc ${?} &amp;quot;Error during rename, exiting&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# change the character folder name&lt;br /&gt;
I=0&lt;br /&gt;
while [[ ${I} -lt ${NUM_OLD} ]]; do&lt;br /&gt;
    echo &amp;quot;Changing character folder name from ${OLD[I]} to ${NEW[I]}&amp;quot;&lt;br /&gt;
    mv &amp;quot;${DST}/WTF/Account/${ACCT}/${TO}/${OLD[I]}&amp;quot; &amp;quot;${DST}/WTF/Account/${ACCT}/${TO}/${NEW[I]}&amp;quot;&lt;br /&gt;
    chkrc ${?} &amp;quot;Error during rename, exiting&amp;quot;&lt;br /&gt;
    I=$((${I}+1))&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
# build a sed command file&lt;br /&gt;
SED_FILE=&amp;quot;${DST}/WTF/sed_cmd.txt&amp;quot;&lt;br /&gt;
echo &amp;quot;s/\&amp;quot;${FROM}/\&amp;quot;${TO}/g&amp;quot; &amp;gt;&amp;gt; ${SED_FILE}&lt;br /&gt;
echo &amp;quot;s/${FROM}\&amp;quot;/${TO}\&amp;quot;/g&amp;quot; &amp;gt;&amp;gt; ${SED_FILE}&lt;br /&gt;
I=0&lt;br /&gt;
while [[ ${I} -lt ${NUM_OLD} ]]; do&lt;br /&gt;
    echo &amp;quot;s/\&amp;quot;${OLD[I]}/\&amp;quot;${NEW[I]}/g&amp;quot; &amp;gt;&amp;gt; ${SED_FILE}&lt;br /&gt;
    echo &amp;quot;s/${OLD[I]}\&amp;quot;/${NEW[I]}\&amp;quot;/g&amp;quot; &amp;gt;&amp;gt; ${SED_FILE}&lt;br /&gt;
    echo &amp;quot;s/\&amp;quot;char\/${OLD[I]}/\&amp;quot;char\/${NEW[I]}/g&amp;quot; &amp;gt;&amp;gt; ${SED_FILE}&lt;br /&gt;
    I=$((${I}+1))&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
# perform replacements on each lua file in SavedVariables&lt;br /&gt;
cd &amp;quot;${DST}/WTF/Account/${ACCT}/SavedVariables&amp;quot;&lt;br /&gt;
modifyLUA &amp;quot;${SED_FILE}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# perform replacements for each character in the realm&lt;br /&gt;
cd &amp;quot;${DST}/WTF/Account/${ACCT}/${TO}&amp;quot;&lt;br /&gt;
for D in *; do&lt;br /&gt;
    if [[ -d ${D} ]]; then&lt;br /&gt;
        cd ${D}&lt;br /&gt;
        modifyLUA &amp;quot;${SED_FILE}&amp;quot;&lt;br /&gt;
        cd SavedVariables&lt;br /&gt;
        modifyLUA &amp;quot;${SED_FILE}&amp;quot;&lt;br /&gt;
        cd ..&lt;br /&gt;
        cd ..&lt;br /&gt;
    fi&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
# create the temporary directory for a single installation&lt;br /&gt;
if [[ ${SINGLEINSTALL} -eq 1 ]]; then&lt;br /&gt;
    echo &amp;quot;Moving orignal WTF to ${SRC}/WTF.beforemigration&amp;quot;&lt;br /&gt;
    mv &amp;quot;${SRC}/WTF&amp;quot; &amp;quot;${SRC}/WTF.beforemigration&amp;quot;&lt;br /&gt;
    chkrc ${?} &amp;quot;Error during rename, exiting&amp;quot;&lt;br /&gt;
    echo &amp;quot;Moving new WTF to ${SRC}/WTF&amp;quot;&lt;br /&gt;
    mv &amp;quot;${DST}/WTF&amp;quot; &amp;quot;${SRC}&amp;quot;&lt;br /&gt;
    chkrc ${?} &amp;quot;Error during move, exiting&amp;quot;&lt;br /&gt;
    rmdir &amp;quot;${DST}&amp;quot;&lt;br /&gt;
    chkrc ${?} &amp;quot;Error during removal of ${DST}, exiting&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>WoWWiki&gt;Nemes2</name></author>
	</entry>
</feed>