linux-tools/modules/hacker/hacker.sh

29 lines
384 B
Bash
Raw Permalink Normal View History

2020-03-21 23:49:29 +01:00
#!/usr/bin/env bash
width="$(tput cols)"
width=$((width / 4))
printf "$width"
printf "\e[32m\n"
while :
do
for ((i=1;i<=width;i++))
do
((r = $RANDOM % 2))
if (($RANDOM % 5 == 1))
then
if (($RANDOM % 4 == 1))
then
v+="\e[1m $r "
else
v+="\e[2m $r "
fi
else
v+=" "
fi
done
printf "$v\n"
v=""
done
;;