<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>coffee_kabu</author_name>
  <author_url>https://blog.hatena.ne.jp/coffee_kabu/</author_url>
  <blog_title>Bus errorとSegmentation faultに困ったら見るブログ</blog_title>
  <blog_url>https://coffee-guhaw.hateblo.jp/</blog_url>
  <categories>
    <anon>シェルコマンド/シェルスクリプト</anon>
  </categories>
  <description>$(())という書き方は実はもっと色々とできるっぽい ↓の記事に詳しくまとめられている■ 参考 : bashで四則演算( -×÷)や割り算のあまり(剰余)を求めるような簡単な計算をする 四則演算 余りを求める $(( 5 % 3 )) 累乗を求める 偶奇の判定、 $(( なんか &amp;amp; 1 ))で返り値が1なら奇数、0なら偶数 ただし、$(())の最大のデメリットは整数しか扱えないこと小数を使いたい場合はbcコマンドを使う またはawkとかでもOKか■ 参考 : 【シェルスクリプト】bcコマンド ランキング参加中です ↓クリックしていただけると嬉しいです〜ランキング参加中Python ラン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F09%2F20%2F000000&quot; title=&quot;【シェルコマンド】$(()) が万能戦士だったことに今更気づいた 四則演算はもちろん、累乗、あまり - Bus errorとSegmentation faultに困ったら見るブログ&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>2025-09-20 00:00:00</published>
  <title>【シェルコマンド】$(()) が万能戦士だったことに今更気づいた 四則演算はもちろん、累乗、あまり</title>
  <type>rich</type>
  <url>https://coffee-guhaw.hateblo.jp/entry/2025/09/20/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
