[9fans] print(2)'s format

2014-03-02 Thread trebol
Hello, this is the little story: I usually write scripts needing numbers padded on the left with zeros, like in '%03.0f'. In UNIX I use printf(1), but now I'm using more and more rc scripts with P9P, and I like to use Plan9 programs to make the scripts more portable to Plan9... so I tried with

Re: [9fans] print(2)'s format

2014-03-02 Thread erik quanstrom
Hello, this is the little story: I usually write scripts needing numbers padded on the left with zeros, like in '%03.0f'. In UNIX I use printf(1), but now I'm using more and more rc scripts with P9P, and I like to use Plan9 programs to make the scripts more portable to Plan9... so I tried