<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>karoten512</author_name>
  <author_url>https://blog.hatena.ne.jp/karoten512/</author_url>
  <blog_title>君は心理学者なのか？</blog_title>
  <blog_url>https://karoten512.hatenablog.com/</blog_url>
  <categories>
    <anon>linux</anon>
  </categories>
  <description>いきさつ 空行を検出するスクリプトを書いていた 古池や 蛙飛び込む 水の音 をシェルに読み込ませ、空行があったときに 「空行があるよ」というスクリプトを書いた。 ※ 実際の処理を簡略化してます #!/bin/bash while read line do if [ $line = '' ]; then echo '空行があるよ' fi done &lt; line.txt しかしうごかないんだなこれが test.sh: line 4: [: =: unary operator expected というエラーがでる。 どこでエラーが置きているかわからないので、 #!/bin/bash while re…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkaroten512.hatenablog.com%2Fentry%2F2018%2F01%2F19%2F002558&quot; title=&quot;シェルで文字列を比較したときに、[: =: unary operator expected :というエラーがでる - 君は心理学者なのか？&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/k/karoten512/20180119/20180119002642.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-19 00:25:58</published>
  <title>シェルで文字列を比較したときに、[: =: unary operator expected :というエラーがでる</title>
  <type>rich</type>
  <url>https://karoten512.hatenablog.com/entry/2018/01/19/002558</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
