<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://labs.echoditto.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>EchoDitto Labs - first post: how the shell made me go !h:7 !! - Comments</title>
 <link>http://labs.echoditto.com/node/35</link>
 <description>Comments for &quot;first post: how the shell made me go !h:7 !!&quot;</description>
 <language>en</language>
<item>
 <title>thank you</title>
 <link>http://labs.echoditto.com/node/35#comment-4084</link>
 <description>&lt;p&gt;thank you Ethan.&lt;/p&gt;
&lt;p&gt;Regards;&lt;br /&gt;
Beyca&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.myalem.com&quot; title=&quot;canlı sohbet&quot; target=&quot;_blank&quot;&gt;sohbet&lt;/a&gt; - &lt;a href=&quot;http://www.myalem.com&quot; title=&quot;canlı chat&quot; target=&quot;_blank&quot;&gt;çet&lt;/a&gt; - &lt;a href=&quot;http://www.sohbetev.net&quot; title=&quot;sohbetev.net&quot; target=&quot;_blank&quot;&gt;sohbetev&lt;/a&gt;&lt;/p&gt;
</description>
 <pubDate>Mon, 22 Sep 2008 10:13:24 -0700</pubDate>
 <dc:creator>giresun chat</dc:creator>
 <guid isPermaLink="false">comment 4084 at http://labs.echoditto.com</guid>
</item>
<item>
 <title>first post: how the shell made me go !h:7 !!</title>
 <link>http://labs.echoditto.com/node/35</link>
 <description>&lt;p&gt;Hi I&#039;m Ethan, the new guy.  This is my first post, but beyond that brief bio and the unequivocal denial of any claims that I don&#039;t change my shirt on a daily basis, this post isn&#039;t going to be about me.&lt;/p&gt;
&lt;p&gt;It&#039;s going to be about the totally off the hook tricks I leaned about the &quot;previous command&quot; shell shortcuts I learned today from &lt;a href=&quot;http://nubyonrails.com/articles/useful-shell-shortcuts&quot; title=&quot;Useful Shell Shortcuts | Ruby on Rails for Newbies&quot;&gt;this post&lt;/a&gt; and how they totally rocked my world a second ago.&lt;/p&gt;
&lt;p&gt;So here&#039;s the situation: I downloaded a file and couldn&#039;t remember whether it was a zip or a tarball, so I ran this command:&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;geshifilter php&quot;&gt;&amp;nbsp; &amp;nbsp;tar &lt;span style=&quot;color: #66cc66;&quot;&gt;-&lt;/span&gt;xzf ~&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;downloads&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;google&lt;span style=&quot;color: #66cc66;&quot;&gt;-&lt;/span&gt;sitemap&lt;span style=&quot;color: #66cc66;&quot;&gt;-&lt;/span&gt;generator&lt;span style=&quot;color: #cc66cc;&quot;&gt;.3&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;0b7&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;zip&lt;br /&gt;
&amp;nbsp;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Why did I try to unzip a tarball, you ask? Because I&#039;m lazy, and when autocomplete says &quot;press enter&quot;, I ask &quot;how fast&quot;?  Needless to say, the result was some mumbo-jumbo that I&#039;m sure must have had ample amounts of bit-level impatience buried somewhere underneath it.&lt;/p&gt;
&lt;p&gt;Remembering the tricks from that post I tried this:&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;geshifilter php&quot;&gt;&amp;nbsp; &amp;nbsp;unzip &lt;span style=&quot;color: #66cc66;&quot;&gt;!&lt;/span&gt;^&lt;br /&gt;
&amp;nbsp;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I was thinking that maybe the first argument (referenced by &lt;code class=&quot;geshifilter php&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;!&lt;/span&gt;^&lt;/code&gt;) would be recognized as the argument after the flags.  But no go, it resolved to &lt;code class=&quot;geshifilter php&quot;&gt;unzip &lt;span style=&quot;color: #66cc66;&quot;&gt;-&lt;/span&gt;xzf&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now I had a bit of a dilemma: I couldn&#039;t use any more of the cool tricks because they all referred to the command prior to the last...unless.  What if all the argument referencing commands could be prefixed with a pattern!?! Sure enough, this gem worked like a charm...gem...:&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;geshifilter php&quot;&gt;&amp;nbsp; &amp;nbsp;unzip &lt;span style=&quot;color: #66cc66;&quot;&gt;!&lt;/span&gt;tar&lt;span style=&quot;color: #66cc66;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Which basically reads &lt;code class=&quot;geshifilter php&quot;&gt;unzip &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;the second argument of the last command matching the glob&lt;span style=&quot;color: #66cc66;&quot;&gt;-&lt;/span&gt;string &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;tar&#039;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;To my total, complete astonishment it actually worked.  Brilliant.&lt;/p&gt;
</description>
 <comments>http://labs.echoditto.com/node/35#comments</comments>
 <category domain="http://labs.echoditto.com/taxonomy/term/74">admin</category>
 <category domain="http://labs.echoditto.com/taxonomy/term/72">bash</category>
 <category domain="http://labs.echoditto.com/taxonomy/term/73">shell</category>
 <pubDate>Fri, 20 Jul 2007 13:04:00 -0700</pubDate>
 <dc:creator>Ethan</dc:creator>
 <guid isPermaLink="false">35 at http://labs.echoditto.com</guid>
</item>
</channel>
</rss>
