Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Matrix Effect in you terminal
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}'

khakimov commented Aug 31, 2012

like this

e-fu commented Apr 19, 2014


bqbtoan commented May 29, 2014


breim commented Jun 20, 2014


Cool :)

Here's a deobfuscated version for the curious:

c4po187 commented Jul 11, 2016

Nifty 👍

I love this

Cool command! I'd like to change the characters printed to terminal, but any change I make to the string in 'letters' returns the error "awk: illegal statement at source line 1 - 5 missing ]'s". Anyone know what all I need to change for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment