multiview/examples/demo1.sh

14 lines
220 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
2023-10-22 17:21:31 +02:00
color="\x1B[3$(rand 1 6)m"
2023-10-18 23:16:03 +02:00
echo -e "$color$(rand 1 100)\x1b[0m"
2023-10-22 17:21:31 +02:00
sleep 0.$(rand 1 2)
2023-10-18 23:16:03 +02:00
done