Re: padding left-justified string fields
From: Joe Smith (Joe.Smith_at_inwap.com)
Date: 07/22/04
- Next message: Joe Smith: "Re: open file through web page and supply an incremented name...."
- Previous message: Joe Smith: "Re: padding left-justified string fields"
- In reply to: Dave: "Re: padding left-justified string fields"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 22 Jul 2004 09:55:31 GMT
Dave wrote:
> Okay, that's all good. But my predicament is that I want something like
> "10" padded to "010" AND I want it left-justified... the manpage for printf
> states "If the 0 and - flags both appear, the 0 flag is ignored."
It appears you did not recognize the significance of this line:
.number "precision": digits after decimal point for
floating-point, max length for string, minimum length
for integer
That line explains what you should expect from
printf "%10.3\n",99;
-Joe
- Next message: Joe Smith: "Re: open file through web page and supply an incremented name...."
- Previous message: Joe Smith: "Re: padding left-justified string fields"
- In reply to: Dave: "Re: padding left-justified string fields"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]