Skip to content

Instantly share code, notes, and snippets.

@rummelonp
Created June 13, 2012 03:09
Show Gist options
  • Save rummelonp/2921581 to your computer and use it in GitHub Desktop.
Save rummelonp/2921581 to your computer and use it in GitHub Desktop.
突然の死
function suddenize() {
local text=$1
local length=$#text
echo -n '_'; for ((i = 0; i < length; i += 1)) do echo -n '人'; done; echo '_'
echo "> $text <"
echo -n ' ̄'; for ((i = 0; i < length; i += 1)) do echo -n 'Y'; done; echo ' ̄'
}
# $ suddenize 突然の死
# _人人人人_
# > 突然の死 <
#  ̄YYYY ̄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment