<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takuya_1st</author_name>
  <author_url>https://blog.hatena.ne.jp/takuya_1st/</author_url>
  <blog_title>それマグで！</blog_title>
  <blog_url>https://takuya-1st.hatenablog.jp/</blog_url>
  <categories>
    <anon>sed</anon>
    <anon>linux</anon>
    <anon>bash</anon>
    <anon>gnu</anon>
  </categories>
  <description>sed の区切り文字を変える sed コマンドでは、検索と置換の文字列を区切りを変えられます。 普通はスラッシュを使うと思うんだけど、スラッシュはフォルダ名やPATHで使われるため、エスケープ処理が面倒になる。 sed 's/search_name/takuya/g'; 区切りを変える sed 's|search_name|takuya|g'; その他にも記号を使える その他の記号を使えるので、置換対象の文字列がURLの場合や、ファイル名の場合、エスケープが少なくなるように区切りを変えるのはいい方法だと思う。 takuya@:~$ echo abcd | sed -e 's/b/x/g' ax…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2022%2F11%2F14%2F174543&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>2022-11-14 17:45:43</published>
  <title>sed コマンドで区切り文字を変えて、ファイル名に一致させる</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2022/11/14/174543</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
