Move a word from a line to another of the same file text
<p>I have a text file and I want to move "/A" from line 507 to line 561 of my text.
I will put just a part of my file text.</p>

<p>This is the example:</p>

<pre><code>A NAME="23_09_15at12_37_00_comp_sum_mismatch" &lt; /A &gt;

&lt;data&gt;
-----------------
Mismatch analysis
-------------------------------------------------------------
               Statistics    All_Seqs        Mean        s.d.
-------------------------------------------------------------

Demographic expansion
---------------------
                      Tau        18.6    18.58410     0.00000
              Tau qt 2.5%     7.79899     7.79899     0.00000
                Tau qt 5%    10.53528    10.53528     0.00000
               Tau qt 95%    23.50602    23.50602     0.00000
             Tau qt 97.5%    24.74816    24.74816     0.00000
                   Theta0     0.00000     0.00000     0.00000
           Theta0 qt 2.5%     0.00000     0.00000     0.00000
             Theta0 qt 5%     0.00000     0.00000     0.00000
</code></pre>

<p>And I want this outcome:</p>

<pre><code>A NAME="23_09_15at12_37_00_comp_sum_mismatch"

&lt;data&gt;
-----------------
Mismatch analysis
-------------------------------------------------------------
               Statistics    All_Seqs        Mean        s.d.
-------------------------------------------------------------

Demographic expansion
---------------------
                      Tau        18.6    18.58410     0.00000
              Tau qt 2.5%     7.79899     7.79899     0.00000
                Tau qt 5%    10.53528    10.53528     0.00000
               Tau qt 95%    23.50602    23.50602     0.00000
             Tau qt 97.5%    24.74816    24.74816     0.00000
                   Theta0     0.00000     0.00000     0.00000
           Theta0 qt 2.5%     0.00000     0.00000     0.00000
             Theta0 qt 5%     0.00000     0.00000     0.00000
&lt; /A &gt;
</code></pre>