Adding Leading Zero in Bash
OOzy Pal
oozypal at gmail.com
Sun Oct 22 11:16:23 UTC 2006
Ok, but I don't know number before hand, I mean that I might come a
cross 15. Then what would happend am I gona get 015.
I would like to add zero when the number is between 0-9 and ignors the
zero for number >9
thanks
On 10/22/06, F. J. Zhao <fuziok at gmail.com> wrote:
> In bash, 0{1,2,3,4,5,6,7,8,9} is equal to 01 02 03 04 05 06 07 08 09.
>
> 2006/10/22, OOzy Pal <oozypal at gmail.com>:
> > How can I add a leading zero to numbers that are from 1 to 9 to be 01,
> > 02. . .,09?
> >
> > --
> > OOzy
> > Kubuntu-Dapper
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
OOzy
Kubuntu-Dapper
More information about the ubuntu-users
mailing list