<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Xargs on Companionway</title>
    <link>http://localhost:1313/tags/xargs/</link>
    <description>Recent content in Xargs on Companionway</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 10 Dec 2016 20:38:12 -0500</lastBuildDate>
    <atom:link href="http://localhost:1313/tags/xargs/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Recursively Replace Text</title>
      <link>http://localhost:1313/post/recursive-replace-text/</link>
      <pubDate>Sat, 10 Dec 2016 20:38:12 -0500</pubDate>
      <guid>http://localhost:1313/post/recursive-replace-text/</guid>
      <description>&lt;p&gt;Recently I had to do a find and replace text on multiple files recursively. I had to look up how to do it to remind myself of the exact syntax. If I had to look it up, you have to suffer seeing it in my blog post&amp;hellip; [smile]&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;find ./ -name \*.md -print0 | xargs -0 sed -i &amp;#39;s/header-img/img/&amp;#39;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Be careful here. I used the -0 option to deal with any filename that have spaces in the name BUT it really requires that the find command contain the -print0 option otherwise things will not operate in the manner expected.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Recursively Replace Text</title>
      <link>http://localhost:1313/search/post/recursive-replace-text/</link>
      <pubDate>Sat, 10 Dec 2016 20:38:12 -0500</pubDate>
      <guid>http://localhost:1313/search/post/recursive-replace-text/</guid>
      <description>&lt;p&gt;Recently I had to do a find and replace text on multiple files recursively. I had to look up how to do it to remind myself of the exact syntax. If I had to look it up, you have to suffer seeing it in my blog post&amp;hellip; [smile]&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;find ./ -name \*.md -print0 | xargs -0 sed -i &amp;#39;s/header-img/img/&amp;#39;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Be careful here. I used the -0 option to deal with any filename that have spaces in the name BUT it really requires that the find command contain the -print0 option otherwise things will not operate in the manner expected.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
