[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]
[Hilos de Discusión] [Fecha] [Tema] [Autor]On Thu, 14 Mar 2002, mario benitez wrote: > do if [$ip_violator -eq $i] Debes poner un espacio depues del "[" y antes del "]". Esto es porque en realidad se trata de un "alias" al comando test que es parte del bash (y otros basados en sh). Imagina que lo escribes así: do if test$ip_violator -eq $i y te saltará de inmediato el problema. > counter = counter + 1 esto no se puede hacer así nomás, requieres prender una bandera antes. Ve lo que dice el man de bash: If the variable has its -i attribute set (see declare below in SHELL BUILTIN COMMANDS) then value is subject to arithmetic expansion even if the $[...] syntax does not appear. date una vuelta por el man de bash y busca: arithmetic axpansion arithmetic evaluation seguro te será útil. Saludos, Toño --- Blore's Razor: Given a choice between two theories, take the one which is funnier. _______________________________________________ Ayuda mailing list Ayuda en linux org mx