snipt

Ctrl+h for KB shortcuts

Bash

Add all files marked as '?'

svn status |grep '^?' |sed 's/^?      /svn add "/g' |sed 's/$/"/g' |sh
https://snipt.net/embed/f9f5bfa0d39c724b60f27b7dda0a0650/
/raw/f9f5bfa0d39c724b60f27b7dda0a0650/
f9f5bfa0d39c724b60f27b7dda0a0650
bash
Bash
1
2019-07-21T19:28:35
True
False
False
/api/public/snipt/209/
add-all-files-marked-as
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn status <span class="p">|</span>grep <span class="s1">&#39;^?&#39;</span> <span class="p">|</span>sed <span class="s1">&#39;s/^? /svn add &quot;/g&#39;</span> <span class="p">|</span>sed <span class="s1">&#39;s/$/&quot;/g&#39;</span> <span class="p">|</span>sh </span></pre></div> </td></tr></table>
svn