<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>macperl</author_name>
  <author_url>https://blog.hatena.ne.jp/macperl/</author_url>
  <blog_title>備忘録。</blog_title>
  <blog_url>https://macperl.hatenadiary.org/</blog_url>
  <categories>
    <anon>Perl</anon>
    <anon>Linux</anon>
  </categories>
  <description>文字列置き換えを行う時に、対象ファイルが複数の場合はひとつひとつエディタで開き置き換えを行うのは非常に手間がかかってします。 そんな時に便利なのが、やっぱりPerlです。例えば、サイト内の全ての「href=&quot;/top/regist.html&quot;」を「href=&quot;/top/regist_top.html&quot;」に変換する場合。 サイト内の対象ディレクトリのトップで移動し、 $ perl -pi -e 's/href=&quot;\/top\/regist\.html&quot;/href=&quot;\/top\/regist_top\.html&quot;/g' */* 一発で、変換できます。便利。指定しているPerlのオプションは e …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmacperl.hatenadiary.org%2Fentry%2F20070125%2F1169700825&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>2007-01-25 13:53:45</published>
  <title>ファイル内文字列の一括置き換え</title>
  <type>rich</type>
  <url>https://macperl.hatenadiary.org/entry/20070125/1169700825</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
