summaryrefslogtreecommitdiffstats
path: root/bin/type.sh
blob: b9dbcd71a215a0ad012711231d40c761d6e0f93c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
sleep 1
while read line
do
    grep -o . <<<$line | while read a
    do
        sleep 0.$((RANDOM%3))
        #2>&1 echo -n "${a:- }" | tee /dev/tty
        echo -n "${a:- }" | tee /dev/tty
    done
    sleep 0.$((RANDOM%7))
    1>&2 echo -ne $"\n"
    echo
    sleep 1.0
done