[Novalug] Is this one or more commands

John Warren jpwarren00@gmail.com
Sun Sep 16 09:06:09 EDT 2007


Works on mine too.  Make sure to only separate the sequence range with 2
dots, I've wrote scripts with a typo of 3 dots numerous times.

-John

On 9/16/07, Richard Rognlie <rrognlie@gamerz.net> wrote:
>
> On Sun, Sep 16, 2007 at 08:34:03AM -0400, Michael Henry wrote:
> > Paul W. Frields wrote:
> > >You can also use the braces { } to do simple sequences in bash, which
> is
> > >often useful:
> > >
> > >$ echo {0..14}
> > >0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
> > >$ echo {a..f}
> > >a b c d e f
> >
> > I think you mean "zsh" instead of "bash":
> >
> > mike@mac-wired:~$ echo $SHELL
> > /bin/bash
> > mike@mac-wired:~$ echo {0..14}
> > {0..14}
> > mike@mac-wired:~$ zsh
> > mac-wired% echo {0..14}
> > 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
>
> Perhaps it depends on the version of bash.
>
> It works on mine...
>
>         GNU bash, version 3.00.15(1)-release (i686-redhat-linux-gnu)
>
>
> --
> /  \__  | Richard Rognlie / Sendmail Ninja / Gamerz.NET Lackey
> \__/  \ | http://www.gamerz.net/~rrognlie    <rrognlie at gamerz.net>
> /  \__/ | Creator of pbmserv@gamerz.net
> \__/    |                Helping reduce world productivity since 1994
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.firemountain.net/pipermail/novalug/attachments/20070916/3542eb03/attachment.htm>


More information about the Novalug mailing list