









|
[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[NMLUG] [NMOSUG-L] generated a list of leading-zero numbers?
I wanted extra leading-0's.
I like to give myself 'breathing room.'
j
----
- Think carefully.
- Contra mundum - "Against the world" (St. Athanasius)
- Credo ut intelligam - "I believe that I may know" (St. Augustin of Hippo)
On Tue, Feb 23, 2010 at 11:47 AM, Nathan Wallwork <owen at pungent.org> wrote:
> Maybe you're overthinking this....
>
> $ seq -w 8 12
> 08
> 09
> 10
> 11
> 12
>
>
> On Tue, 23 Feb 2010, Jody Harris wrote:
>
> > Subject: [NMOSUG-L] generated a list of leading-zero numbers?
> > Date: Tue, 23 Feb 2010 08:48:54 -0700
> > From: Jody Harris <havoc at harrisdev.com>
> > To: New Mexico Linux Users Group Mail List <nmlug at nmlug.org>,
> > nmosug-l at mailman.swcp.com
> > X-Original-To: owen at pungent.org
> > Delivered-To: owen at pungent.org
> > Reply-To: nmosug-l at mailman.swcp.com
> >
> > I sometimes need to generate a list of numbers with leading zeros. What's
> > the easiest way to do this at the shell?
> >
> > I put this together, but it just seems too indirect:
> > for id in `for ((i=0; i<45; i++)); do echo; done | nl -ba -nrz`; do echo
> > foo$id; done
> >
> > jody
> > ----
> > - Think carefully.
> > - Contra mundum - "Against the world" (St. Athanasius)
> > - Credo ut intelligam - "I believe that I may know" (St. Augustin of
> Hippo)
> >
> _______________________________________________
> NMOSUG-L mailing list
> NMOSUG-L at mailman.swcp.com
> http://mailman.swcp.com/mailman/listinfo/nmosug-l
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.b9.com/pipermail/nmlug/attachments/20100223/37e54043/attachment.html>
|
|