In UTF-8 it’s actually 6 digits (or 3 bytes).
$ printf '\xE2\x98\xA0'
☠
To check how it’s encoded by the console, use hexdump:
$ printf ☠ | hexdump
0000000 98e2 00a0
0000003
More Related Contents:
- Expansion of variables inside single quotes in a command in Bash
- Reading quoted/escaped arguments correctly from a string
- Can a shell script set environment variables of the calling shell? [duplicate]
- How to add a progress bar to a shell script?
- What is the purpose of “&&” in a shell command?
- How can I remove the extension of a filename in a shell script?
- sudo echo “something” >> /etc/privilegedFile doesn’t work [duplicate]
- While-loop subshell dilemma in Bash
- How do I escape the wildcard/asterisk character in bash?
- Check existence of input argument in a Bash shell script
- How do I grab an INI value within a shell script?
- How to create a cron job using Bash automatically without the interactive editor?
- How can I count all the lines of code in a directory recursively?
- How does Ctrl-C terminate a child process?
- Running multiple commands in one line in shell
- printf in bash: “09” and “08” are invalid numbers, “07” and “06” are fine
- Concatenating multiple text files into a single file in Bash
- String comparison in bash. [[: not found
- How to Batch Rename Files in a macOS Terminal?
- How to pass arguments to Shell Script through docker run
- How do I pause my shell script for a second before continuing?
- How to remove filename prefix with a Posix shell
- What does ” 2>&1 ” mean?
- How do I read user input into a variable in Bash?
- Why do I get “/bin/sh: Argument list too long” when passing quoted arguments?
- Count number of lines in a git repository
- How do I check if a directory exists or not in a Bash shell script?
- shell script respond to keypress
- How to properly nest Bash backticks
- Subtract two variables in Bash