The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
printf returning unknown number
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
printf returning unknown number
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
08-08-2005
aigles
Registered User
Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,211
49 is the ascii value of the character '1'.
The solution(s) :
Code:
printf "%d\n" 10 printf "%d\n" '10'
Jean-Pierre.
aigles
View Public Profile
Find all posts by aigles