Bash matrix fuer arme

From s23
Jump to navigation Jump to search

"Matrix für Arme"

#!/bin/bash
let i=0
while [ $i -lt 1000 ]; do
for (( j = 0 ; j < 10 ; j++ ))
do number[$j]=$RANDOM
done
echo -en "\033[s ${number[0]} ${number[1]} ${number[2]} ${number[3]} ${number[4]} ${number[5]} ${number[6]} ${number[7]} ${number[8]} ${number[9]}\033[u"
let i=i+1
done