blob: 03ed0743402b58aef622be494785284add5199ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#! /bin/bash
rand() {
tr -dc 0-9 < /dev/urandom | head -c 5 | sed 's/^0*//'
echo
}
reset
while [ true ]; do
CARS=$(( $(rand) % 16 + 1 ))
FLAGS=""
if [ $(( $(rand) % 2 )) -gt 0 ]; then
FLAGS="${FLAGS}-a "
fi
if [ $(( $(rand) % 2 )) -gt 0 ]; then
FLAGS="${FLAGS}-c "
fi
if [ $(( $(rand) % 2 )) -gt 0 ]; then
FLAGS="${FLAGS}-l "
fi
if [ $(( $(rand) % 2 )) -gt 0 ]; then
FLAGS="${FLAGS}-w "
fi
sl -${CARS} ${FLAGS} | lolcat
sleep 1
done
|