<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>CORDEA</author_name>
  <author_url>https://blog.hatena.ne.jp/CORDEA/</author_url>
  <blog_title>CORDEA blog</blog_title>
  <blog_url>https://cordea.hatenadiary.com/</blog_url>
  <categories>
    <anon>awk</anon>
  </categories>
  <description>最近小ネタばっかりですがこんなファイルがあったとして 0,1,2,3,4,5,6,7,8,9 a,b,c,d,e,f,g,h,i,j このような感じで出力したい場合 0 1 2 3 4:5:6:7:8:9 a b c d e:f:g:h:i:j #!/bin/awk -f BEGIN { FS=&quot;,&quot; } { for(i=1; i&lt;=NF; i++) { if (i&gt;5) { if (i==NF) { print $i } else { printf $i &quot;:&quot; } } else { printf $i &quot;\t&quot; } } } もう少しきれいに書けないものか...</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcordea.hatenadiary.com%2Fentry%2F2014%2F10%2F05%2F160702&quot; title=&quot;【awk】ファイルを複数の区切り文字を使って出力する場合 - CORDEA blog&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>2014-10-05 16:07:02</published>
  <title>【awk】ファイルを複数の区切り文字を使って出力する場合</title>
  <type>rich</type>
  <url>https://cordea.hatenadiary.com/entry/2014/10/05/160702</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
