Monday, May 9, 2011

Converting numbers to hex in ubuntu terminal

I found out that to insert characters by ascii number one way is to type ctrl+shift+u and then the hex number of the char

To find the hex you can use in terminal

printf "%x\n" 34

to find the code of a char or special char that you have on the keyboard type for example

printf "%x\n" "'{'"

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.