[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: obtener string que hace match con cierta regex



On Tue, 20 Mar 2001, Ivan Lopez wrote:

> gracias por las ideas, pero no sabriais una forma de hacerlo sin
> utilizar perl? no puedo disponer de el en la maquina en question :(,
> por eso necesito hacerlo con herramientas como sed, awk... o el propio
> bash
>
> un saludo

sed s/[^[:digit:]]//g

Literalmente "sustituye por nada lo que no sea un dígito"

Más info en man 7 regex

Ta luegos

-----------------------------------------------------------------------------
Xavier Gonzalez Onrubia			E-Mail:   	 is04392@salleURL.edu
					WWW: http://www.salleURL.edu/~is04392
					Linux User no.66357

"Programming today is a race between software engineers striving to build
   bigger and better idiot-proof programs, and the universe trying to produce
   bigger and better idiots.
				So far the universe is winning." - Rich Cook



Reply to: