<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Iron Ore on Amit Agarwal Linux Blog</title>
    <link>/tags/iron-ore/</link>
    <description>Recent content in Iron Ore on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Thu, 03 Nov 2011 07:20:20 +0000</lastBuildDate>
    
	<atom:link href="/tags/iron-ore/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>using `!#$’ to referance backward-word</title>
      <link>/2011/11/03/referance-backward-word/</link>
      <pubDate>Thu, 03 Nov 2011 07:20:20 +0000</pubDate>
      
      <guid>/2011/11/03/referance-backward-word/</guid>
      <description>&lt;div class=&#34;zemanta-img&#34; style=&#34;margin: 1em; display: block;&#34;&gt;
  &lt;p&gt;
    &lt;figure style=&#34;width: 240px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://www.flickr.com/photos/8945974@N08/5507068816&#34;&gt;&lt;img class=&#34;zemanta-img-configured&#34; title=&#34;Operating System Tablet Strategy&#34; src=&#34;https://i1.wp.com/blog.amit-agarwal.co.in/wp-content/uploads/zemanta//5507068816_ded55139d2_m.jpg?resize=240%2C124&#34; alt=&#34;Operating System Tablet Strategy&#34; width=&#34;240&#34; height=&#34;124&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;Image by jeffalldridge via Flickr&lt;/figcaption&gt;&lt;/figure&gt;
  &lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Here is something that I found on the &lt;a href=&#34;http://www.commandlinefu.com/commands/view/9327/using-to-referance-backward-word&#34; target=&#34;_blank&#34;&gt;commandlinefu&lt;/a&gt;&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;cp /work/host/phone/ui/main.cpp !#$:s/host/target&lt;/pre&gt;
&lt;p&gt;Ah well…its very interesting and very useful.&lt;/p&gt;
&lt;p&gt;Some explanation:&lt;/p&gt;
&lt;p&gt;!# – means the current command (similar to !! being the last command)&lt;/p&gt;
&lt;p&gt;$ – represents the last parameter&lt;/p&gt;
&lt;p&gt;:s – is used for substitution.&lt;/p&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://www.makeuseof.com/tag/commandlinefu-amazing-collection-command-line-gems-linux-mac/&#34;&gt;CommandLineFu: Amazing Collection Of Command Line Gems [Linux &amp; Mac]&lt;/a&gt; (&lt;a class=&#34;zem_slink&#34; title=&#34;MakeUseOf&#34; href=&#34;http://www.makeuseof.com/dir/&#34; rel=&#34;homepage&#34;&gt;makeuseof.com&lt;/a&gt;)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://ftalphaville.ft.com/blog/2011/10/28/715136/oh-the-iron-y/&#34;&gt;Oh, the Iron-y&lt;/a&gt; (ftalphaville.ft.com)
  &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;zemanta-pixie&#34; style=&#34;margin-top: 10px; height: 15px;&#34;&gt;
  &lt;a class=&#34;zemanta-pixie-a&#34; title=&#34;Enhanced by Zemanta&#34; href=&#34;http://www.zemanta.com/&#34;&gt;&lt;img class=&#34;zemanta-pixie-img&#34; style=&#34;float: right;&#34; src=&#34;https://i1.wp.com/img.zemanta.com/zemified_e.png?w=688&#34; alt=&#34;Enhanced by Zemanta&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;
&lt;/div&gt;</description>
    </item>
    
  </channel>
</rss>
