# [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 output to be 008
> 
>     printf(8)

    printf(1), of course.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to