-
-
Save kureikei/5df19f2fd8fc86c8bcde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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