[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Array no KSH
From: |
Mateus Espadoto |
Subject: |
Re: [shell-script] Array no KSH |
Date: |
Wed, 2 Jun 2004 17:59:12 -0300 (ART) |
--- Leonardo <address@hidden> escreveu: > Olá pessoal,
>
> Como declaro uma variável array no KSH?
set -A <nome_array> [<lista de valores separadas por $IFS>]
Por exemplo:
set -A teste a b c d e
cria o array "teste", conforme abaixo:
$ set | grep teste
teste[0]=a
teste[1]=b
teste[2]=c
teste[3]=d
teste[4]=e
Para criar um array vazio, é somente
$ set -A nome_array
Nesse link (http://www.cs.princeton.edu/~jlk/kornshell/doc/man93.html)
tem a manpage do ksh93. Vale a pena ver.
______________________________________________________________________
Participe da pesquisa global sobre o Yahoo! Mail:
http://br.surveys.yahoo.com/global_mail_survey_br