Skip to content

Instantly share code, notes, and snippets.

@eaton
Created June 27, 2014 15:13
Show Gist options
  • Save eaton/e5977cb07811faffc206 to your computer and use it in GitHub Desktop.
Save eaton/e5977cb07811faffc206 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Assignment
text=$@
letters=("a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" "y" "z" "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z")
blackletters=("๐”ž" "๐”Ÿ" "๐” " "๐”ก" "๐”ข" "๐”ฃ" "๐”ค" "๐”ฅ" "๐”ฆ" "๐”ง" "๐”จ" "๐”ฉ" "๐”ช" "๐”ซ" "๐”ฌ" "๐”ญ" "๐”ฎ" "๐”ฏ" "๐”ฐ" "๐”ฑ" "๐”ฒ" "๐”ณ" "๐”ด" "๐”ต" "๐”ถ" "๐”ท" "๐”„" "๐”…" "โ„ญ" "๐”‡" "๐”ˆ" "๐”‰" "๐”Š" "โ„Œ" "โ„‘" "๐”" "๐”Ž" "๐”" "๐”" "๐”‘" "๐”’" "๐”“" "๐””" "โ„œ" "๐”–" "๐”—" "๐”˜" "๐”™" "๐”š" "๐”›" "๐”œ" "โ„จ")
for i in {1..52}; do
text=${text//${letters[$i]}/${blackletters[$i]}}
done
echo $text
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment