Last active
October 27, 2016 07:08
-
-
Save mizucoffee/036cc3ed88e0613d0a84cfa26aad7246 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 | |
##################################################### | |
# _人人人人人人_ # | |
# > 突然の死 < ジェネレータ(コマンドライン版) # | |
#  ̄Y^Y^Y^Y^Y ̄ # | |
# # | |
# by @kawakawaritsuki # | |
# みずこーひー # | |
##################################################### | |
TEXT="$1" | |
if [ ${#1} = 0 ]; then | |
TEXT="突然の死" | |
fi | |
COUNT="${#TEXT}" | |
LINE1="" | |
LINE1=`echo $LINE1 | sed -e "s/$/_/g"` | |
HITO=`expr $COUNT + 2` | |
for i in `seq 1 $HITO`; do | |
LINE1=`echo $LINE1 | sed -e "s/$/人/g"` | |
done | |
LINE1=`echo $LINE1 | sed -e "s/$/_/g"` | |
LINE2=`echo "> ${TEXT} <"` | |
LINE3="" | |
LINE3=`echo $LINE3 | sed -e "s/$/ ̄Y/g"` | |
for i in `seq 1 $COUNT`; do | |
LINE3=`echo $LINE3 | sed -e "s/$/^Y/g"` | |
done | |
LINE3=`echo $LINE3 | sed -e "s/$/ ̄/g"` | |
echo $LINE1 | |
echo $LINE2 | |
echo $LINE3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment