snipt

Ctrl+h for KB shortcuts

Bash

diff output from bash commands

$ diff -u <(curl seanomlor.com/demo/asteroids/index.html) <(curl seanomlor.com/demo/snake/index.html)
https://snipt.net/embed/257f895154039f9080e8ed3916e4fd8d/
https://snipt.net/raw/257f895154039f9080e8ed3916e4fd8d/
257f895154039f9080e8ed3916e4fd8d
bash
Bash
2
2016-09-27T14:15:30
True
False
False
Feb 08, 2014 at 01:26 AM
/api/public/snipt/111880/
diff-output-from-bash-commands
<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 id="L-1"><a name="L-1"></a><span class="nv">$ </span>diff -u &lt;<span class="o">(</span>curl seanomlor.com/demo/asteroids/index.html<span class="o">)</span> &lt;<span class="o">(</span>curl seanomlor.com/demo/snake/index.html<span class="o">)</span> </span></pre></div> </td></tr></table>
bash, curl, diff

Bash

Get response headers from POST request with curl

curl -s -d 'test=test' -D- www.google.com -o/dev/null
https://snipt.net/embed/ff9964a6872571066ed5cc4c13f1674a/
https://snipt.net/raw/ff9964a6872571066ed5cc4c13f1674a/
ff9964a6872571066ed5cc4c13f1674a
bash
Bash
1
2016-09-27T15:39:38
True
False
False
Jan 17, 2013 at 10:26 AM
/api/public/snipt/53893/
get-response-headers-from-post-request-with-curl
<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 id="L-1"><a name="L-1"></a>curl -s -d <span class="s1">&#39;test=test&#39;</span> -D- www.google.com -o/dev/null </span></pre></div> </td></tr></table>
bash, curl, headers, post
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.