blob: 8794a7739ff9f236fab92146e8faaedc5bd0e644 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#! /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}-d "
fi
if [ $(( $(rand) % 2 )) -gt 0 ]; then
FLAGS="${FLAGS}-F "
fi
if [ $(( $(rand) % 2 )) -gt 0 ]; then
FLAGS="${FLAGS}-G "
FLAGS=$(echo ${FLAGS} | sed 's/-c //g')
FLAGS=$(echo ${FLAGS} | sed 's/-l //g')
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
|