<?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>linux</anon>
    <anon>gnu</anon>
    <anon>sed</anon>
    <anon>bash</anon>
  </categories>
  <description>sedなら出来る。 sed で検索文字列の直前に行を作って入れられる。 今回使ったsedはgnu sedです。 マッチの直前に行を追加 サンプル echo hello | sed '/hello/i world' hello の直前にsay を入れました。 sed で行挿入をシンプルにやる。 sed を使って、設定ファイルを書き換えるコマンドを作っていると。 マッチ箇所の「直前」に行を入れたい。ということがよくある。 たとえば、次のようにコメントアウトをしつつ、設定を書きたい。など leftauth=secret #leftauth=pubkey 行挿入の例 これらは、sedで動く行挿入の例デ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2022%2F12%2F05%2F034458&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>https://cdn-ak.f.st-hatena.com/images/fotolife/t/takuya_1st/20221205/20221205032432.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-12-05 03:44:58</published>
  <title>sed で行挿入をシンプルに行う。</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2022/12/05/034458</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
