On Sun, 08 Jul 2007 10:47:35 -0700, Manolet Gmail <[EMAIL PROTECTED]>
wrote:
tengo un array en bash con muchos elementos ...
error[500]="Syntax error, command unrecognized."
error[501]="Syntax error in parameters or arguments."
error[502]="Command not implemented."
error[503]="Bad sequence of commands."
....
y quiero saber como puedo acceder a ellos y tambien al numero de su
index, en realidad quiero hacer algo como
if grep "$INDEX" archivo {
echo ${error[$INDEX]}
}
Se supone que así se hace.
¿Y qué pasó cuando lo intentaste?
--
Octavio.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]