Last active
April 1, 2020 04:40
-
-
Save Cj-bc/938e1f37fb02729ad3c22cc4ffa4f130 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
ぽに!ぽに!ぽに!ぽに?ぽに!ぽに!ぽに?ぽに!ぽに!ぽに!ぽにぃぽに?ぽにぃぽに!ぽに!ぽに!ぽに!ぽに!ぽに?ぽに?ぽに!ぽに!ぽに?ぽに!ぽに?ぽにぃぽに?ぽにぃぽに!ぽに!ぽに!ぽに!ぽに!ぽに?ぽに?ぽに!ぽに?ぽに?ぽに!ぽに!ぽにぃぽに?ぽにぃぽに!ぽに!ぽに!ぽに!ぽに!ぽに?ぽに?ぽに!ぽに?ぽに?ぽに!ぽに!ぽにぃぽに?ぽにぃぽに!ぽに!ぽに!ぽに!ぽに!ぽに?ぽに?ぽに!ぽに?ぽに?ぽに?ぽに?ぽにぃぽに?ぽにぃぽに!ぽに!ぽに!ぽに!ぽに!ぽに?ぽに!ぽに!ぽに!ぽに!ぽに!ぽにぃぽに?ぽにぃぽに!ぽに!ぽに!ぽに!ぽに!ぽに?ぽに!ぽに?ぽに!ぽに?ぽに?ぽに?ぽにぃぽに?ぽにぃぽに!ぽに!ぽに!ぽに!ぽに!ぽに?ぽに?ぽに!ぽに?ぽに?ぽに?ぽに?ぽにぃぽに?ぽにぃぽに!ぽに!ぽに!ぽに!ぽに!ぽに?ぽに?ぽに?ぽに!ぽに!ぽに?ぽに!ぽにぃぽに?ぽにぃぽに!ぽに!ぽに!ぽに!ぽに!ぽに?ぽに?ぽに!ぽに?ぽに?ぽに!ぽに!ぽにぃぽに?ぽにぃぽに!ぽに!ぽに!ぽに!ぽに!ぽに?ぽに?ぽに!ぽに!ぽに?ぽに!ぽに!ぽにぃぽに?ぽにぃぽに!ぽに!ぽに!ぽに!ぽに!ぽに!ぽに!ぽに!ぽに?ぽに!ぽに?ぽに!ぽにぃぽに?ぽにぃぽに!ぽに!ぽにぃぽにぃ |
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
#!/usr/bin/env bash | |
# | |
# ponytail -- A translator to whitespace | |
# | |
# Just a whitespace variant for ponytail language | |
# This is fan-made April fool script for Souma mirei, ponytail VTuber | |
# | |
# Copyright 2020 (c) Cj-bc a.k.a Cj.BC_SD | |
# This software is released under MIT License | |
# EOF should be translated to ぽにぃ | |
alias encode='tr "\n" "_" | sed -e "s/ /ぽに!/g" -e "s/ /ぽに?/g" -e "s/_/ぽにぃ/g" -e "s/$/ぽにぃ/g"' | |
alias decode="sed -e 's/ぽに!/ /g' -e 's/ぽに?/ /g' -e 's/ぽにぃ/_/g' | tr '_' '\n'" | |
shopt -s expand_aliases # allow expanding aliases in non-interactive mode | |
if [[ $# > 1 ]]; then | |
input=$(cat $2) | |
else | |
input=$(cat -) | |
fi | |
case $1 in | |
"encode") | |
echo "$input" | encode | |
;; | |
"decode") | |
echo "$input" | decode | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment