snipt

Ctrl+h for KB shortcuts

Bash

remove newline chars in vi

1
2
3
:%s/^v<Carriage Return>//g

*hit the ctrl key + v then hit the carriage return.
https://snipt.net/embed/93b41e5ce27ed4ee81eb0f59144c7974/
/raw/93b41e5ce27ed4ee81eb0f59144c7974/
93b41e5ce27ed4ee81eb0f59144c7974
bash
Bash
3
2019-08-23T09:10:19
True
False
False
/api/public/snipt/10600/
remove-newline-chars-in-vi
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>:%s/^v&lt;Carriage Return&gt;//g </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>*hit the ctrl key + v <span class="k">then</span> hit the carriage <span class="k">return</span>. </span></pre></div> </td></tr></table>
linux, newline, vi