<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>min117</author_name>
  <author_url>https://blog.hatena.ne.jp/min117/</author_url>
  <blog_title>min117の日記</blog_title>
  <blog_url>https://min117.hatenablog.com/</blog_url>
  <categories>
    <anon>csv</anon>
    <anon>office製品</anon>
    <anon>awk</anon>
    <anon>シェル芸</anon>
    <anon>数学/統計</anon>
  </categories>
  <description>こんな感じのカンマ区切りのcsvファイルがあったとして $ vim test.csv 1列目（ヘッダ）だけをタテに表示したい。 sedでできた。こうなる。 $ cat test.csv | head -n 1 | sed -e 's/,/\'$'\n/g' 's/,/\'$'\n/g' ではsとgの前後にシングルクオートが要るらしい。さらに改行の前にシングルクオートした＄が必要ぽい。 qiita.com なんでそうなるかは苦労の跡を見てもらったほうが早い。 いつでも思い出せるようにalias に入れてしまおう。 追記 いや待てよ。このほうが早いんじゃないか？ $ for i in $(cat …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmin117.hatenablog.com%2Fentry%2F2020%2F11%2F03%2F082224&quot; title=&quot;sed ヘッダ行だけをタテに表示する （Excelの行列を入れ替えて貼り付け） - min117の日記&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/m/min117/20201103/20201103081912.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-11-03 08:22:24</published>
  <title>sed ヘッダ行だけをタテに表示する （Excelの行列を入れ替えて貼り付け）</title>
  <type>rich</type>
  <url>https://min117.hatenablog.com/entry/2020/11/03/082224</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
