<?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>
  </categories>
  <description>sed で改行の置換をする方法 sed ':a;N;$!ba;s/\n/&lt;replacement_txt&gt;/g' いろいろフラグを追加したら出来るみたい。 記号にギョっとするけど、ちゃんと出来るよ takuya@aqua-iot$ cat - | sed ':a;N;$!ba;s/\n/ /g' Hello world I am Hello world I am 一瞬記号に面食らって何だこれ？ってなると思うんだけど、ちゃんと出来るよ これは次のsedオプションを置換指定に入れたGNU sed 記法です なので、ぎょっとする記号は、次のオプションと同じですね。 sed -e ':a' -e 'N…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2015%2F03%2F19%2F020000&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>2015-03-19 02:00:00</published>
  <title> シェルコマンド、sed で改行の置換して、一行にする。</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2015/03/19/020000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
