One line
printf "\x$(printf %x 65)"
Two lines
set $(printf %x 65)
printf "\x$1"
Here is one if you do not mind using awk
awk 'BEGIN{printf "%c", 65}'
More Related Contents:
- printf in bash: “09” and “08” are invalid numbers, “07” and “06” are fine
- Padding characters in printf
- Fast way of finding lines in one file that are not in another?
- Convert absolute path into relative path given a current directory using Bash
- ffmpeg in a bash pipe
- Check existence of input argument in a Bash shell script
- How to remove files starting with double hyphen?
- awk in bash with ls and variable
- How to create a cron job using Bash automatically without the interactive editor?
- Simple logical operators in Bash
- How do I rename the extension for a bunch of files?
- How best to include other scripts?
- What do $? $0 $1 $2 mean in shell script? [duplicate]
- Division in script and floating-point
- Is there a bash command which counts files?
- Insert newline (\n) using sed
- How to loop through dates using Bash?
- How can I align the columns of tables in Bash?
- Why does getopts only work the first time?
- How to determine function name from inside a function
- How to pipe multiple commands into a single command in the shell? (sh, bash, …)
- Loop only iterates once with `ssh` in the body [duplicate]
- How do I read user input into a variable in Bash?
- How to read from a file or standard input in Bash
- Count number of lines in a git repository
- Send command to a background process
- Validate date format in a shell script
- How do you return to a sourced bash script?
- Signals received by bash when terminal is closed
- What is more portable? echo -e or using printf?