<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cakecatz</author_name>
  <author_url>https://blog.hatena.ne.jp/cakecatz/</author_url>
  <blog_title>素材の味</blog_title>
  <blog_url>https://cakecatz.hatenadiary.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>僕が普段使っているBracketsにはすべてのファイルからの検索はあるけど、置換はない。 だから、複数ファイルの文字列の置換はソフトウェアを使って行っていた。 別に不自由はなかったけど、Windows環境に依存していたからあまり好きではなかった。 そこでターミナルからこの作業ができないかと思った。 最初に見つけたのはfindを使った方法。 find . -name &quot;*.txt&quot; -exec sh -c 'sed -e &quot;s/aaa/bbb/&quot; {} &gt; {}' \; これを実行すると今いるディレクトリのtxtファイル内のaaaをbbbに置換する。 これでもいいんだけど、すこし理解しづらい。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcakecatz.hatenadiary.com%2Fentry%2F2014%2F06%2F10%2F161027&quot; title=&quot;ターミナルから複数ファイル内の文字列の置換 - 素材の味&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-06-10 16:10:27</published>
  <title>ターミナルから複数ファイル内の文字列の置換</title>
  <type>rich</type>
  <url>https://cakecatz.hatenadiary.com/entry/2014/06/10/161027</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
