Created
January 2, 2021 19:59
-
-
Save pashri/774c3ffde63a0e10f81145c7fe8a88ff to your computer and use it in GitHub Desktop.
How to look busy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cleanup () { | |
tput cnorm | |
exit 0 | |
} | |
clear | |
trap cleanup EXIT TERM | |
tput civis | |
while true; do | |
head -c$[(`tput cols` / 25)*10*($RANDOM%10+1)] /dev/urandom | od -An -w$[(`tput cols` / 25)*10] -x | grep -E --color "([[:alpha:]][[:digit:]]){2}"; | |
sleep .$[$RANDOM % 10]; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment