Skip to content

Instantly share code, notes, and snippets.

@kureikei
Created March 3, 2015 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kureikei/5df19f2fd8fc86c8bcde to your computer and use it in GitHub Desktop.
Save kureikei/5df19f2fd8fc86c8bcde to your computer and use it in GitHub Desktop.
#/bin/bash
WORDS=($(curl "http://ja.wikipedia.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" 2> /dev/null | grep -o '[一-龠][一-龠]'))
WORD=$(echo ${WORDS[$(expr $RANDOM % ${#WORDS[@]})]})
echo "${WORD}や ああ${WORD}や ${WORD}や"
echo " ウィキペディア(http://ja.wikipedia.org/wiki/)より"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment