Ejecuta en la consola

man bash

escribe " /=~ " sin comillas para buscar y....


BASH_REMATCH
An array variable whose members are assigned by  the  =~ binary operator 
to the [[ conditional command.  The element with index 0 is the portion of
 the  string  matching  the  entire  regular  expression.The  element 
with  index  n is the portion of the string matching the nth parenthesized
subexpression.  This variable is read-only.


saludos, yosle.

P.D:  alguien se anima a hacer un curso de shell scripting ?....


El Jue, 28 de Abril de 2011, 2:36 pm, Araceli Alonso escribió:
> disculpen mi ignorancia, pero:
> que función tiene el ~ al inicio de la expresión regular en la
> condicional:
>
>  if [[ $1 =~ ^[[:digit:]]+$ ]] && (( $1 >= 0 && $1 <= 255 ))
>

--

Ubuntu User number is # 30682




______________________________________________________________________
Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba.
Gutl-l@jovenclub.cu
https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l

Responder a