Skip to content

Instantly share code, notes, and snippets.

@onjiro
Created December 5, 2012 04:12
Show Gist options
  • Save onjiro/4212171 to your computer and use it in GitHub Desktop.
Save onjiro/4212171 to your computer and use it in GitHub Desktop.
おおゆうしゃよ、seqが使えない環境とはなにごとだ
#!/bin/bash
# 数値の昇順になにかしたいことあるよね
# seq が使えればこう書きますなぁ
for i in `seq 5 10`
do
echo i
done
# seq が使えない場合はこう書くこともできますよ、っと
for (( i=5; i<=10 ;i++ ))
do
echo i
done
# seq が使えないなんて・・・><
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment