How to remove blank space between some words using sed?
<p>I want to replace characters between specific words in a line (multiple lines). for example:</p>

<pre><code>first second third |         first line
first second third |  second line
first second third |    third line 
first second third |                forth line 
....
</code></pre>

<p>I want to replace characters between third and first/second/third/forth etc...using sed or vi in linux.</p>

<p>If this question is already answered, can you please provide me the link?
Thanks!</p>