Created
July 7, 2016 09:08
-
-
Save tamanugi/b47e4cc37c32e2b1697bd22d5d0ab2e4 to your computer and use it in GitHub Desktop.
七夕なのでシェルスクリプトで短冊に願いごと書いた ref: http://qiita.com/tamanugi/items/b4a23d6f9102a29fcad2
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
% ./wish.sh 今日も一日がんばるぞい | |
┏┷┓ | |
┃今┃ | |
┃日┃ | |
┃も┃ | |
┃一┃ | |
┃日┃ | |
┃が┃ | |
┃ん┃ | |
┃ば┃ | |
┃る┃ | |
┃ぞ┃ | |
┃い┃ | |
┗━┛ | |
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
% ./wish.sh かえりたい | |
┏┷┓ | |
┃か┃ | |
┃え┃ | |
┃り┃ | |
┃た┃ | |
┃い┃ | |
┗━┛ | |
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 | |
echo "┏┷┓" | |
for s in `echo $1 | grep -o '.'`; do | |
echo "┃${s}┃" | |
done | |
echo "┗━┛" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment