snipt

Ctrl+h for KB shortcuts

Bash

run mvn eclipse for each directory in zsh

for i in `ls` ; do pushd $i; mvn-eclipse; popd; done
https://snipt.net/embed/53ddf5daec1a5ed881ed21ebbce10a92/
/raw/53ddf5daec1a5ed881ed21ebbce10a92/
53ddf5daec1a5ed881ed21ebbce10a92
bash
Bash
1
2019-07-18T16:31:21
True
False
False
/api/public/snipt/41029/
run-mvn-eclipse-for-each-directory-in-zsh
<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><span class="k">for</span> i in <span class="sb">`</span>ls<span class="sb">`</span> <span class="p">;</span> <span class="k">do</span> <span class="nb">pushd</span> <span class="nv">$i</span><span class="p">;</span> mvn-eclipse<span class="p">;</span> popd<span class="p">;</span> <span class="k">done</span> </span></pre></div> </td></tr></table>