<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: substitute code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 08 Aug 2008 05:37:56 GMT</pubDate>
    <description>DZone Snippets: substitute code</description>
    <item>
      <title>Ruby - Sostituire elementi</title>
      <link>http://snippets.dzone.com/posts/show/3031</link>
      <description>// Sostituisce "old" con "new" in tutti i file&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;ruby .i.bak -pe 'sub "old", "new"' *&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 24 Nov 2006 05:07:55 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3031</guid>
      <author>whitetiger ()</author>
    </item>
    <item>
      <title>Position-based substitution in arrays</title>
      <link>http://snippets.dzone.com/posts/show/1949</link>
      <description>// Replace array values based on their row and column position&lt;br /&gt;// This is an alternative to using for loops to test each position&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;a &lt;- array(0, dim=c(10, 10))&lt;br /&gt;a[row(a) &lt;= col(a)*2] &lt;- 1&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 21 Apr 2006 23:59:43 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1949</guid>
      <author>mroutley (Matthew Routley)</author>
    </item>
  </channel>
</rss>
