Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. function randomosx() {
  2.     LIST_OF_FUN=$(curl --connect-timeout 3 -s http://twitter.com/osxdaily | grep '<span class=\"entry' | sed -e 's/<[^>]*>//g' | sed 's/^[ \t]*//;s/[ \t]*$//' )
  3.     RANDY=`echo $RANDOM%20+1 | bc`  
  4.     echo "$LIST_OF_FUN" | sed -n "${RANDY}p"
  5. }