Re: Una pregunta tonta sobre tr
On Wed, 19 Dec 2001, Javier Miguel Rodríguez wrote:
> Es decir, quiero que BUSQUE Y REEMPLAZE una cadena por otra en un fichero...
> algo simple... se que se puede hacer con tr, pero no me sale...
>
> Sería algo así como tr "ip_que_sea" "nombre_que_quiero" < fichero_monstruoso
rpl "ip_que_sea" "nombre_que_quiero" fichero
http://freshmeat.net/projects/rpl
About: rpl is a Unix text replacement utility. It will replace strings
with new strings in multiple text files. It can scan directories
recursively and replace strings in all files found. The search can be
limited to files with certain filename suffixes (e.g. '.html', '.c',
etc.). It includes source, a build script, and a man page. It should
work on most flavors of Unix. Linux/Intel, Linux/PPC, and source RPMs
are available, as are binaries for other OSes, including Mac OS X.
Mi herramienta predilecta para tales usos.
---
pub 1024D/0DD0F1CA 2001-09-19 Fabian A. Arias M. (dewback) <fabian@gnome.cl>
Key fingerprint = B478 850E 6C8A C388 2B65 68E5 9604 A4FC 0DD0 F1CA
Debian GNU/Linux Sid - Kernel 2.4.17-rc1-lpp - ReiserFS
http://www.dewback.cl/ | http://primate.gnome.cl/~fabian/
Reply to: