printf bad ?

Peter plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Fri Mar 18 22:24:25 UTC 2005



On Fri, 18 Mar 2005, Jason Shein wrote:

>> (according to the bash manual that notation should force decimal - it
>> does not - not in quotes and not in ticks and not with a
>> backslash-escaped '#').
>>
>
> Take a look here
> http://colton.byuh.edu/courses/tut/printf.pdf
>
> printf "%05d",08  produces    00000,08
> printf "%05d",8    produces    00000,8
> printf "%05d"8     produces    0000008
> printf "%05d".8    produces    000000.8

Thanks, that helped,
Peter

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list