Can you explain why
CHAR=$(printf "\x$(printf %x 42)"); echo $CHAR
works as ls
command in the current directory?
I'm trying to print a character by its decimal ASCII code. "man" what and where do I need to read? Or is there some better way to get the character in decimal code?
I'm trying to get "*" in the output.