Created
February 21, 2014 03:10
-
-
Save unot/9128097 to your computer and use it in GitHub Desktop.
16刻みで255までの三次元配列を生成。for文だと非常に遅かったので、bashのブレース展開を利用して一行に。
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 | |
#for i in {0..16}; do | |
# for j in {0..16}; do | |
# for k in {0..16}; do | |
# echo $(expr $i \* 16), $(expr $j \* 16), $(expr $k \* 16) | |
# done | |
# done | |
#done | |
eval echo \{$(seq -s, 0 16 256)\},\{$(seq -s, 0 16 256)\},\{$(seq -s, 0 16 256)\} | sed -e 's/ /\n/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment