snipt

Ctrl+h for KB shortcuts

JavaScript

jQuery Wildcard

1
2
3
4
5
$("[id$='txtcomPagerAlpha']")  //ENDS With

$("[id^='txtcomPagerAlpha']")  //STARTS With

$("[id*='txtcomPagerAlpha']") //CONTAINS
https://snipt.net/embed/51370e6b1fc4743a2125c867dab25864/
/raw/51370e6b1fc4743a2125c867dab25864/
51370e6b1fc4743a2125c867dab25864
js
JavaScript
5
2019-08-21T06:28:10
True
False
False
Apr 01, 2014 at 11:40 AM
/api/public/snipt/126495/
jquery-wildcard
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nx">$</span><span class="p">(</span><span class="s2">&quot;[id$=&#39;txtcomPagerAlpha&#39;]&quot;</span><span class="p">)</span> <span class="c1">//ENDS With</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nx">$</span><span class="p">(</span><span class="s2">&quot;[id^=&#39;txtcomPagerAlpha&#39;]&quot;</span><span class="p">)</span> <span class="c1">//STARTS With</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="nx">$</span><span class="p">(</span><span class="s2">&quot;[id*=&#39;txtcomPagerAlpha&#39;]&quot;</span><span class="p">)</span> <span class="c1">//CONTAINS</span> </span></pre></div> </td></tr></table>
jquery, wildcard

Bash

Find size of all but few directories

du -sh `ls -1 | grep -v -e atf_runs -e exploration`
https://snipt.net/embed/4c5e9758e35335ae45b5df5c3adff3fe/
/raw/4c5e9758e35335ae45b5df5c3adff3fe/
4c5e9758e35335ae45b5df5c3adff3fe
bash
Bash
1
2019-08-21T01:22:25
True
False
False
/api/public/snipt/30373/
find-size-of-all-but-few-directories
<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>du -sh <span class="sb">`</span>ls -1 <span class="p">|</span> grep -v -e atf_runs -e exploration<span class="sb">`</span> </span></pre></div> </td></tr></table>
bash, negation, wildcard