Skip to content

Instantly share code, notes, and snippets.

@andrezrv
Created Dec 19, 2013
Embed
What would you like to do?
Trigger a Matrix effect in your command line. Very unuseful, but nice and cool.
echo -e "\e[32m";
while :; do for i in {1..16};
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;
echo -e "$v";
v="";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment