<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kakenman</author_name>
  <author_url>https://blog.hatena.ne.jp/kakenman/</author_url>
  <blog_title>kakenmanの日記</blog_title>
  <blog_url>https://kakenman.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>awkでOFS指定しても出力のセパレータが無視される時がある問題がやっと解決しました．やりたいこと 何らかのセパレータで区切られたcsvファイルの中から，特定の条件を満たす行を，セパレータを変えて出力する まぁ，こう言われればみんなawkでやろうとしますよね？そうでもない？例えば以下のようなカンマ区切りのcsvファイル a,b d,c a,e e,dこの中から，一つ目のフィールドが&quot;a&quot;の行のみ，セパレータをカンマからプラスに変えて出力したいとします． つまり， a+b a+eが望む形．この時，とりあえず思いつくのは， % awk -F &quot;,&quot; 'BEGIN{OFS=&quot;+&quot;}{ if($1==…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakenman.hatenadiary.org%2Fentry%2F20110317%2F1300381670&quot; title=&quot;awkで$0出力するときにOFS指定が無視られる問題 - kakenmanの日記&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>2011-03-17 02:07:50</published>
  <title>awkで$0出力するときにOFS指定が無視られる問題</title>
  <type>rich</type>
  <url>https://kakenman.hatenadiary.org/entry/20110317/1300381670</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
