<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Kommentarer til: Bash.org script</title> <atom:link href="http://fuzzy76.net/217/bash-org-script/feed/" rel="self" type="application/rss+xml" /><link>http://fuzzy76.net/217/bash-org-script/</link> <description>En blogg om vår digitale hverdag og andre pretensiøse temaer :)</description> <lastBuildDate>Fri, 30 Jul 2010 11:55:05 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0</generator> <item><title>Av: Håvard Pedersen</title><link>http://fuzzy76.net/217/bash-org-script/comment-page-1/#comment-263</link> <dc:creator>Håvard Pedersen</dc:creator> <pubDate>Wed, 21 Apr 2010 18:03:36 +0000</pubDate> <guid
isPermaLink="false">http://fuzzy76.net/?p=217#comment-263</guid> <description>No, thanks, I prefer my programs readable and maintable. :p I&#039;m sure you could do it in &lt;a href=&quot;http://www.muppetlabs.com/~breadbox/bf/&quot; rel=&quot;nofollow&quot;&gt;Brainfuck&lt;/a&gt; too if you wanted to. ;)</description> <content:encoded><![CDATA[<p>No, thanks, I prefer my programs readable and maintable. :p I&#8217;m sure you could do it in <a
href="http://www.muppetlabs.com/~breadbox/bf/" rel="nofollow">Brainfuck</a> too if you wanted to. ;)</p> ]]></content:encoded> </item> <item><title>Av: oc</title><link>http://fuzzy76.net/217/bash-org-script/comment-page-1/#comment-262</link> <dc:creator>oc</dc:creator> <pubDate>Mon, 05 Apr 2010 00:05:14 +0000</pubDate> <guid
isPermaLink="false">http://fuzzy76.net/?p=217#comment-262</guid> <description>Or even;
#!/bin/bash
curl &quot;http://bash.org/?random1&quot; 2&gt;/dev/null &#124; ack -1o &#039;&lt;p class=&quot;qt&quot;&gt;(.*)&lt;/p&gt;&#039; --output=&#039;$1&#039; &#124; sed &quot;s/&amp; gt ;/&gt;/g&quot; &#124; sed &quot;s/&amp; lt ;/&lt;/g&quot;requires curl (curl.haxx.se) and ack (betterthangrep.com) — two excellent commandline tools :)</description> <content:encoded><![CDATA[<p>Or even;<br
/> #!/bin/bash<br
/> curl &#8220;http://bash.org/?random1&#8243; 2&gt;/dev/null | ack -1o &#8216;&lt;p class=&#8221;qt&#8221;&gt;(.*)&lt;/p&gt;&#8217; &#8211;output=&#8217;$1&#8242; | sed &#8220;s/&amp; gt ;/&gt;/g&#8221; | sed &#8220;s/&amp; lt ;/&lt;/g&quot;</p><p>requires curl (curl.haxx.se) and ack (betterthangrep.com) — two excellent commandline tools :)</p> ]]></content:encoded> </item> <item><title>Av: oc</title><link>http://fuzzy76.net/217/bash-org-script/comment-page-1/#comment-261</link> <dc:creator>oc</dc:creator> <pubDate>Mon, 05 Apr 2010 00:02:17 +0000</pubDate> <guid
isPermaLink="false">http://fuzzy76.net/?p=217#comment-261</guid> <description>Umm. The two last sed&#039;s should be &amp; gt ; and &amp; lt ; (w/o spaces - got escaped).</description> <content:encoded><![CDATA[<p>Umm. The two last sed&#8217;s should be &amp; gt ; and &amp; lt ; (w/o spaces &#8211; got escaped).</p> ]]></content:encoded> </item> <item><title>Av: oc</title><link>http://fuzzy76.net/217/bash-org-script/comment-page-1/#comment-260</link> <dc:creator>oc</dc:creator> <pubDate>Mon, 05 Apr 2010 00:00:43 +0000</pubDate> <guid
isPermaLink="false">http://fuzzy76.net/?p=217#comment-260</guid> <description>Or even;
#!/bin/bash
curl &quot;http://bash.org/?random1&quot; 2&gt;/dev/null &#124; ack -1o &#039;(.*)&#039; --output=&#039;$1&#039; &#124; sed &quot;s/&gt;/&gt;/g&quot; &#124; sed &quot;s/&lt;/&lt;/g&quot;requires curl (curl.haxx.se) and ack (betterthangrep.com) -- two excellent commandline tools :)</description> <content:encoded><![CDATA[<p>Or even;<br
/> #!/bin/bash<br
/> curl &#8220;http://bash.org/?random1&#8243; 2&gt;/dev/null | ack -1o &#8216;(.*)&#8217; &#8211;output=&#8217;$1&#8242; | sed &#8220;s/&gt;/&gt;/g&#8221; | sed &#8220;s/&lt;/&lt;/g&quot;</p><p>requires curl (curl.haxx.se) and ack (betterthangrep.com) &#8212; two excellent commandline tools :)</p> ]]></content:encoded> </item> <item><title>Av: Håvard Pedersen</title><link>http://fuzzy76.net/217/bash-org-script/comment-page-1/#comment-259</link> <dc:creator>Håvard Pedersen</dc:creator> <pubDate>Fri, 26 Mar 2010 09:07:33 +0000</pubDate> <guid
isPermaLink="false">http://fuzzy76.net/?p=217#comment-259</guid> <description>Haha, that&#039;s awesome! :)</description> <content:encoded><![CDATA[<p>Haha, that&#8217;s awesome! :)</p> ]]></content:encoded> </item> <item><title>Av: Juaco</title><link>http://fuzzy76.net/217/bash-org-script/comment-page-1/#comment-258</link> <dc:creator>Juaco</dc:creator> <pubDate>Fri, 26 Mar 2010 07:33:51 +0000</pubDate> <guid
isPermaLink="false">http://fuzzy76.net/?p=217#comment-258</guid> <description>Here you have one in bash, stop complaining!#!/bin/bashquotefile=&quot;${0%/*}/Quotes&quot;
funny=1if [ &quot;$1&quot; == &quot;gimmemore&quot; ]; then
ping -c 1 bash.org &amp;&gt; /dev/null
[ $? == &quot;0&quot; ] &amp;&amp; elinks -dump http://bash.org/?random$funny &#124; sed -n &#039;/^.*ModApp.*_____$/,/^.*Home.*Latest.*$/{/^.*ModApp.*_____$/d;p;}&#039;&gt;$quotefile
exit 0
fiquote=$[$RANDOM%$[$(sed -n &#039;/^.*]#.*$/p&#039; &quot;$quotefile&quot; &#124; wc -l)-2]+1]
quote=$(bash -c &quot;cat -n &quot;$quotefile&quot; &#124; sed -n &#039;/^.*]#.*$/p&#039; &#124; sed -n &quot;${quote}p&quot; &#124; sed &#039;s/^ *([0-9]+).*$/1/g&#039;&quot;)
sed -n &quot;$quote,/^.*]#.*$/{$quoted;/^.*]#.*$/d;p}&quot; $quotefile</description> <content:encoded><![CDATA[<p>Here you have one in bash, stop complaining!</p><p>#!/bin/bash</p><p>quotefile=&#8221;${0%/*}/Quotes&#8221;<br
/> funny=1</p><p>if [ "$1" == "gimmemore" ]; then<br
/> ping -c 1 bash.org &amp;&gt; /dev/null<br
/> [ $? == "0" ] &amp;&amp; elinks -dump <a
href="http://bash.org/?random$funny" rel="nofollow">http://bash.org/?random$funny</a> | sed -n &#8216;/^.*ModApp.*_____$/,/^.*Home.*Latest.*$/{/^.*ModApp.*_____$/d;p;}&#8217;&gt;$quotefile<br
/> exit 0<br
/> fi</p><p>quote=$[$RANDOM%$[$(sed -n '/^.*]#.*$/p&#8217; &#8220;$quotefile&#8221; | wc -l)-2]+1]<br
/> quote=$(bash -c &#8220;cat -n &#8220;$quotefile&#8221; | sed -n &#8216;/^.*]#.*$/p&#8217; | sed -n &#8220;${quote}p&#8221; | sed &#8216;s/^ *([0-9]+).*$/1/g&#8217;&#8221;)<br
/> sed -n &#8220;$quote,/^.*]#.*$/{$quoted;/^.*]#.*$/d;p}&#8221; $quotefile</p> ]]></content:encoded> </item> <item><title>Av: RandomiZed</title><link>http://fuzzy76.net/217/bash-org-script/comment-page-1/#comment-198</link> <dc:creator>RandomiZed</dc:creator> <pubDate>Fri, 08 Jan 2010 12:06:22 +0000</pubDate> <guid
isPermaLink="false">http://fuzzy76.net/?p=217#comment-198</guid> <description>omg. nevermind.
lol : D</description> <content:encoded><![CDATA[<p>omg. nevermind.<br
/> lol : D</p> ]]></content:encoded> </item> <item><title>Av: RandomiZed</title><link>http://fuzzy76.net/217/bash-org-script/comment-page-1/#comment-197</link> <dc:creator>RandomiZed</dc:creator> <pubDate>Fri, 08 Jan 2010 12:05:44 +0000</pubDate> <guid
isPermaLink="false">http://fuzzy76.net/?p=217#comment-197</guid> <description>Why did you write it in php?
Not sure this qualifies as a bash script as long as the whole thing is put in a .You can easily just rename the file and run in on a webpage.Should try doing it in actual bash, and not use another language hidden in a .sh script.</description> <content:encoded><![CDATA[<p>Why did you write it in php?<br
/> Not sure this qualifies as a bash script as long as the whole thing is put in a .</p><p>You can easily just rename the file and run in on a webpage.</p><p>Should try doing it in actual bash, and not use another language hidden in a .sh script.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: fuzzy76.net @ 2010-09-08 11:01:19 by W3 Total Cache -->