<?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>最近知ったがseqという便利なコマンドがあるらしい使い方は% seq 1 10 1 2 3 4 5 6 7 8 9 10みたいな感じMacでは% seq 10 0でも動くけど、別のLinuxではダメだった そういうときは% seq 10 -1 0とかでOKこれとfor文を組み合わせて、for i in `seq 0 5` do echo $i doneとかの使い方が便利■ 過去記事 : 【シェルスクリプト】ファイルを1行ずつ読み込んで処理する少しだけseqのオプションについてもまとめておく Macのseqでは% seq -h usage: seq [-w] [-f format] [-s st…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F08%2F21%2F000000&quot; title=&quot;【シェルスクリプト】seqを使ってfor文の中で楽にインクリメント - 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-08-21 00:00:00</published>
  <title>【シェルスクリプト】seqを使ってfor文の中で楽にインクリメント</title>
  <type>rich</type>
  <url>https://coffee-guhaw.hateblo.jp/entry/2025/08/21/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
