Skip to content

Instantly share code, notes, and snippets.

@mizucoffee
Last active October 27, 2016 07:08
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 mizucoffee/036cc3ed88e0613d0a84cfa26aad7246 to your computer and use it in GitHub Desktop.
Save mizucoffee/036cc3ed88e0613d0a84cfa26aad7246 to your computer and use it in GitHub Desktop.
突然の死ジェネレータ
#!/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