snipt

Ctrl+h for KB shortcuts

Bash

borrar despues de buscar

find -name "nombre" -exec rm -rf {} \;
https://snipt.net/embed/73365c24c580ca3b8d4ec9a927349c10/
/raw/73365c24c580ca3b8d4ec9a927349c10/
73365c24c580ca3b8d4ec9a927349c10
bash
Bash
1
2019-06-15T15:33:38
True
False
False
/api/public/snipt/378/
borrar-despues-de-buscar
<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="s2">&quot;nombre&quot;</span> -exec rm -rf <span class="o">{}</span> <span class="se">\;</span> </span></pre></div> </td></tr></table>
bash, find

Bash

show working directory

pwd
https://snipt.net/embed/34cdda62d6e7fcd085da03c184f6fb8c/
/raw/34cdda62d6e7fcd085da03c184f6fb8c/
34cdda62d6e7fcd085da03c184f6fb8c
bash
Bash
1
2019-06-23T01:00:59
True
False
False
/api/public/snipt/254/
show-working-directory
<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="nb">pwd</span> </span></pre></div> </td></tr></table>
bash, linux, unix

Bash

add newlines to one-line xml string

sed 's/\(<\/[a-zA-Z0-9]*>\)/\1\
/g'
https://snipt.net/embed/ef54209ac6189b5143e415f98ea033e0/
/raw/ef54209ac6189b5143e415f98ea033e0/
ef54209ac6189b5143e415f98ea033e0
bash
Bash
2
2019-06-25T15:07:43
True
False
False
/api/public/snipt/217/
add-newlines-to-one-line-xml-string
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>sed <span class="s1">&#39;s/\(&lt;\/[a-zA-Z0-9]*&gt;\)/\1\</span> </span><span id="L-2"><a name="L-2"></a><span class="s1">/g&#39;</span> </span></pre></div> </td></tr></table>
bash, newline, sed, xml