Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function randomosx() {
- 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]*$//' )
- RANDY=`echo $RANDOM%20+1 | bc`
- echo "$LIST_OF_FUN" | sed -n "${RANDY}p"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement