multiview/examples/demo1.sh

14 lines
220 B
Bash
Executable File

#!/usr/bin/env bash
rand() {
shuf -i"$1"-"$2" -n1
}
iterations=$(rand 5 10)
for i in $(seq 1 "$iterations"); do
color="\x1B[3$(rand 1 6)m"
echo -e "$color$(rand 1 100)\x1b[0m"
sleep 0.$(rand 1 2)
done