Skip to content

Instantly share code, notes, and snippets.

@kou029w
Last active February 8, 2017 16:42
Show Gist options
  • Save kou029w/2cfe17479fc30487cd84cda85f8e1378 to your computer and use it in GitHub Desktop.
Save kou029w/2cfe17479fc30487cd84cda85f8e1378 to your computer and use it in GitHub Desktop.
create a kemono code that outputs a given brainfuck
#!/bin/bash
# なにこれなにこれ!
# https://github.com/consomme/kemono_friends_lang
s='s/>/たのしー:+/たーのしー:</すごーい:-/すっごーい:\[/うわー:]/わーい:\./なにこれなにこれ:,/おもしろーい:^.$//';grep -o . "$@"|sed "${s//:/!/;s/}"|tr -d \\n
@kou029w
Copy link
Author

kou029w commented Feb 8, 2017

To use

From your command line:

./bf2kemono.sh <(echo '>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-<.>+++++++++++[<+++++>-]<.>++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[<++++>-]<+.[-]++++++++++.')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment