snipt

Ctrl+h for KB shortcuts

Bash

process a bunch of XML files w/this python script

find . -name '*.xml' -print | xargs python my-python-script.py
https://snipt.net/embed/d43c22f54e66976a68e152388c3939b3/
/raw/d43c22f54e66976a68e152388c3939b3/
d43c22f54e66976a68e152388c3939b3
bash
Bash
1
2019-08-21T04:04:03
True
False
False
/api/public/snipt/1655/
process-a-bunch-of-xml-files-wthis-python-script
<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>find . -name <span class="s1">&#39;*.xml&#39;</span> -print <span class="p">|</span> xargs python my-python-script.py </span></pre></div> </td></tr></table>
bash, find, xargs