Search This Blog

Monday, September 7, 2009

Command/Code to get ASCII value in UNIX

Found a method to ASCII to character and vice versa in unix and thought of sharing it.
Below is the code.


## Character to ASCII
printf "%d\n" "'A"

## ASCII number to character
awk -v char=65 'BEGIN { printf "%c\n", char; exit }'

1 Comment:

Unknown said...

Dear Suresh,

How do we attach a request group to a responsibility using back end?

Thanks and Regards,
Venkat

Copyright (c) All rights reserved. Presented by Suresh Vaishya