Note: You are viewing an old revision of this page. View the current version.

Who is Ben Staz?!

Nick : Staz

A computer science student at WaikatoUniversity.

Has a flat on Galloway St.

Works for WandGroup

My Guides/Hints:

Random Bash Script I Just Wrote

IFS=$'\n'; lines=($(aptitude search ~g)) count=${#lines[@]}; random_index=$((RANDOM % count)); echo "${lines[random_index]}"

More easily:

aptitude search ~g | while read ; do echo "$RANDOM $REPLY" ; done | sort -n | head -1 | cut -d' ' -f2-