multiview/demo.sh

14 lines
218 B
Bash
Raw Normal View History

2023-10-18 23:16:03 +02:00
#!/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 0 6)m"
echo -e "$color$(rand 1 100)\x1b[0m"
sleep $(rand 1 2)
done