snipt

Ctrl+h for KB shortcuts

Bash

svn add all files marked for add

svn status |grep '^?' |sed 's/^?      /svn add "/g' |sed 's/$/"/g' |sh
https://snipt.net/embed/d08a99d87660f35353d5fb6cd0f1b15b/
/raw/d08a99d87660f35353d5fb6cd0f1b15b/
d08a99d87660f35353d5fb6cd0f1b15b
bash
Bash
1
2019-07-22T15:08:00
True
False
False
/api/public/snipt/68/
svn-add-all-files-marked-for-add
<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>
subversion