[Novalug] Is this one or more commands

Ed James edjames@greenbelt.com
Sun Sep 16 09:08:10 EDT 2007


Still...


    [root@doc GTK+]# echo $SHELL
    /bin/bash
    [root@doc GTK+]# echo {0..14}
    0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
    [root@doc GTK+]#

Send flames for me running as root to /dev/null

Ed James


Quoting Michael Henry <LUG-user@drmikehenry.com>:

> 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
>
> Michael Henry
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug





More information about the Novalug mailing list