<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>interu</author_name>
  <author_url>https://blog.hatena.ne.jp/interu/</author_url>
  <blog_title>よかろうもん！</blog_title>
  <blog_url>https://interu.hatenablog.com/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <description>sedコマンドを利用して、文字列置換を行うことができるのは皆さんご存知のとおりです。私もよく以下のようなコマンドを実行し、filename.txtの中の文字列である (replacement) を hostname に置き換えています。 $ sed -i s/(replacement)/hostname/g filename.txt これでほとんどの場合は解決するのですが、正規表現を使用する時は注意が必要です。 どのようなことに注意しなければならないかというと、「 s/置換対象文字列/置換文字列/g 」のかたまりを「 's/対象文字列/置換文字列/g' 」という風にシングルクォート（'）もしく…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finteru.hatenablog.com%2Fentry%2F20091125%2F1259157389&quot; title=&quot; sedコマンドで正規表現を利用する際に忘れてはならないこと - よかろうもん！&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>2009-11-25 22:56:29</published>
  <title> sedコマンドで正規表現を利用する際に忘れてはならないこと</title>
  <type>rich</type>
  <url>https://interu.hatenablog.com/entry/20091125/1259157389</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
