Hi all,
I am usiung expr in a shell script and need to pad it's output to
always be 3 characters. An example will explain thing better:
% expr 007 + 1
Output is 8
I need the output to be 008
I checked the expr man page, but nothing there solves my problem.
Anyone out there got one?
Thanks
# [EMAIL PROTECTED] / 2002-12-23 10:57:19 +1100:
Hi all,
I am usiung expr in a shell script and need to pad it's output to
always be 3 characters. An example will explain thing better:
% expr 007 + 1
Output is 8
I need the output to be 008
printf(8)
zero-padded integer and
# [EMAIL PROTECTED] / 2002-12-23 01:12:22 +0100:
# [EMAIL PROTECTED] / 2002-12-23 10:57:19 +1100:
Hi all,
I am usiung expr in a shell script and need to pad it's output to
always be 3 characters. An example will explain thing better:
% expr 007 + 1
Output is 8
I need the
on 12/22/02 3:57 PM, BSD Freak [EMAIL PROTECTED] wrote:
Hi all,
I am usiung expr in a shell script and need to pad it's output to
always be 3 characters. An example will explain thing better:
% expr 007 + 1
Output is 8
I need the output to be 008
I checked the expr man page, but
Kurt Bigler wrote:
on 12/22/02 3:57 PM, BSD Freak [EMAIL PROTECTED] wrote:
Hi all,
I am usiung expr in a shell script and need to pad it's output to
always be 3 characters. An example will explain thing better:
% expr 007 + 1
Output is 8
I need the output to be 008
I checked the expr