note
thezip
<p>[doc://sprintf] and [doc://printf] are your huckleberries...</p>
<p>The first argument is the format specification, which is then followed by a list of variables that directly correspond to the "placeholders" specified in the format.</p>
<p>For example,</p>
<c>
printf "%05d", 32; # prints an integer 5 digits wide, with leading zeroes, ie. 00032
printf "%32s", 'foo'; # prints the word 'foo' into an area 32 characters wide
</c>
<p>This doesn't even begin to scratch the surface of what sprint and printf do, but it is a place to start.</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-212789">
<br>
<i>What can be asserted without proof can be dismissed without proof. - Christopher Hitchens</i>
</div></div>
885186
885186