How to print ASCII value of a character using basic awk only.
Posted
by Venkataramesh Kommoju
on Stack Overflow
See other posts from Stack Overflow
or by Venkataramesh Kommoju
Published on 2010-03-23T10:59:46Z
Indexed on
2010/03/23
11:03 UTC
Read the original article
Hit count: 220
I need to print the ASCII value of the given charecter in awk only.
the below gives 0 as output.
echo a | awk '{ printf("%d \n",$1); }'
Help please.
© Stack Overflow or respective owner