The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
find charecter from its ascii value.
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
find charecter from its ascii value.
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
11-20-2007
Perderabo
Unix Daemon
Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,126
You can convert back and forth in a shell script with printf and od. For example a lower case "a" = octal 141...
Code:
$ printf a | od -An -to1 141 $ printf "\141 \n" a $
Perderabo
View Public Profile
Find all posts by Perderabo
Find Perderabo's past nominations received
Find Perderabo's present nominations given