Matrix Style

echo -e "\e[31m"; while $t; do for i in `seq 1 30`;do r="$[($RANDOM % 2)]";h="$[($RANDOM % 4)]";if [ $h -eq 1 ]; then v="\e[1m $r";else v="\e[2m $r";fi;v2="$v2 $v";done;echo -e $v2;v2="";done;
It's the same command as submitted, but first with a command to make all characters green. It's the only way it looked "matrix-like" on my gnome-terminal.

By: Patola
2009-07-10 04:20:43

10 Alternatives + Submit Alt

What Others Think

If we change the initial '''echo -e "\e[31m"; ''' by '''echo -e "\e[32m"; ''', the color shift from red to green. [more "matrix-realistic"]. Also, we can add a "sleep 0.1" command to slow down the "code". Nice script, thx.
nobodyelse · 676 weeks ago
Cool. If you do `seq 1 $COLUMNS` instead of `seq 1 30` , terminal will be filled no matter the number of columns in it.
netkavu · 637 weeks and 2 days ago
The programming help on your forum is pretty useful to all. The people who really need the btec assignment help about programing should grab here. Please do share such related material and also suggest others to visit and grab the help from experts here.
TarynLang · 45 weeks ago
Oracle certification exams are basically helpful for passing professional exams within a limited time period. If you are looking for BTEC Assignment Help
conyjohn · 44 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: