Skip to content

Instantly share code, notes, and snippets.

@tylor
Last active August 29, 2015 14:03
Show Gist options
  • Save tylor/e1ebf330dd4d1797d6a6 to your computer and use it in GitHub Desktop.
Save tylor/e1ebf330dd4d1797d6a6 to your computer and use it in GitHub Desktop.
EAST VAN logo generator in bash
VAN=`egrep -i "^...$" /usr/share/dict/words | perl -MList::Util=shuffle -e "print shuffle<STDIN>" | head -n 1 | tr "[:lower:]" "[:upper:]"` && \
LETTER=${VAN:1:1} && \
EAST=`egrep -i "^.${LETTER}..$" /usr/share/dict/words | perl -MList::Util=shuffle -e "print shuffle<STDIN>" | head -n 1 | tr "[:lower:]" "[:upper:]"` && \
echo " ${EAST:0:1}" && \
echo $VAN && \
echo " ${EAST:2:1}" && \
echo " ${EAST:3:1}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment