![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/12/2006, 14:05
|
![Avatar de -Defero-](http://static.forosdelweb.com/customavatars/avatar69284_1.gif) | Colaborador | | Fecha de Ingreso: julio-2004 Ubicación: Guipúzcoa
Mensajes: 4.776
Antigüedad: 20 años, 7 meses Puntos: 76 | |
Re: Expresiones regulares + sed Hazlo así:
sed -r "s/([0-9])x/\1y/" fichero.txt > resultado.txt
La opción "-r" te permite expresiones regulares extendidas. Envuelves entre paréntesis la variable [0-9], y con \1 vuelves a insertar el texto de la variable en el resultado. |