Simple bash script that prints emojis in a terminal.

Paul Quappe 4dba96d41f Initial commit. 11 months ago
docs 4dba96d41f Initial commit. 11 months ago
src 4dba96d41f Initial commit. 11 months ago
LICENSE dfd7dc85f1 Initial commit 11 months ago
README.md 4dba96d41f Initial commit. 11 months ago
emoji.txt 4dba96d41f Initial commit. 11 months ago

README.md

Terminal Emojis 🕷


Bash script that prints emojis in a terminal.


Overview 🐙


  • Make sure you have installed the proper fonts like e.g: Symbola, DingBats, FreeFont etc. or otherwise the emoji's cannot be printed on the terminal 👀.

  • You can see the entire list of emojis in the 'Unicode characters specification' 👁.

  • Print a single emoji on the terminal like this:

> echo -e '\U1F604'
😄

  • Unicode characters and thus emojis are usually given in hexadecimal numbers.
    In order to loop over a range of hexadecimal numbers in the shell you can convert the hexadecimal numbers into decimal ones, loop over those and format them into a hexadecimal string like this:

> for i in {9312..9316};
do hex=$(printf "%02X" ${i});
echo -e "U+${hex}";
done

  • The output of the script can be seen here. If your browser cannot render it you can open it in a terminal 😉.

  • Some fonts are hard to come by.
    Did you know that you can extract fonts embedded in a pdf file?
    See here for more detailed information. Just telling in case you should need it 😋.


References 🤓



Licence 🖋


  • GNU GENERAL PUBLIC LICENSE Version 3

Author: 🐬


💦