<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>seiunsky</author_name>
  <author_url>https://blog.hatena.ne.jp/seiunsky/</author_url>
  <blog_title>すがブロ</blog_title>
  <blog_url>https://sugamasao.hatenablog.com/</blog_url>
  <categories>
    <anon>シェル</anon>
  </categories>
  <description>for in 等を使う時に 改行だけで分割してくれ！ とか思う時ってあるよね。 デフォルトで、区切り文字はIFS という変数に持っているので、こいつを一時的に変更してあげれば区切り文字をすきなようにできる。 1 #!/bin/sh 2 3 LIST=&quot;test1\ttest2 test3 4 test4&quot; 5 6 echo 'デフォルトのIFS' 7 for l in ${LIST}; do 8 echo &quot;[${l}]&quot; 9 done 10 11 12 # シェル内の区切り文字を変更する 13 IFS=' 14 ' 15 16 echo '改行だけにしたIFS' 17 for l in ${…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugamasao.hatenablog.com%2Fentry%2F20080816%2F1218855134&quot; title=&quot;for 等の区切り位置を変更する - すがブロ&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>2008-08-16 11:52:14</published>
  <title>for 等の区切り位置を変更する</title>
  <type>rich</type>
  <url>https://sugamasao.hatenablog.com/entry/20080816/1218855134</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
