Created
December 5, 2012 04:12
-
-
Save onjiro/4212171 to your computer and use it in GitHub Desktop.
おおゆうしゃよ、seqが使えない環境とはなにごとだ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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