You know you’re a geek when ….

Thursday, April 19th, 2007 | Uncategorized

you, while waiting for the grep command to finish, write a script like this:

#!/bin/sh
clear
export COLS=$(tput cols)
export ROWS=$(tput lines)
while(true)
do
XPOS=$(( $RANDOM % $COLS ))
YPOS=$(( $RANDOM % $ROWS ))
CHAR=$(( $(( $RANDOM % 143 )) + 33 ))
tput cup $YPOS $XPOS
export NCHAR=$(printf "%o" $CHAR)
echo -n -e "\\$NCHAR"
done

1 Comment to You know you’re a geek when ….

Björn
April 20, 2007

I prefer to call it “engineer boredom” in a case like this.

Leave a comment

You must be logged in to post a comment.

Search