🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #15052

Re: Renombrar texto de un archivo

#15052
From: Esteban
Date: Tue, 22 Aug 2000 00:00
32 lines
1729 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

gradha@iname.com <gradha@iname.com> escribi�:

>Con sed podr�as hacer lo siguiente:

>  cat fichero | sed -e "s/\(.*\)/\1.htm/" > nuevo_fichero

>Si luego quieres usar ese nuevo fichero con xargs, y tienes nombres
>con espacios, entonces puede no funcionarte el xargs. S�lo har�a
>falta entrecomillar el nombre del archivo:

>  cat fichero | sed -e "s/\(.*\)/\"\1.htm\"/" > nuevo_fichero

Gracias a los dos que habe�s contestado, funciona perfecto.

Un saludo

- -- 
Esteban Navarro (User Linux 132409)
Fondos Escritorio: http://www.ctv.es/USERS/scandisk
Clave P�blica E-Mail asunto: PGPKEY

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE5ouiGa3aqF90Ua+oRAm6QAJ9qJPKvcfJF5uSZJpuOVzWl3oza2QCgkljn
CdnzQwa7CnpSF8xDPgH5YEI=
=g1SN
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <slrn8q5q47.c70.scandisk@localhost.localdomain>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn8q5acj.8t3.scandisk@localhost.localdomain> <bqiun8.4s2.ln@192.168.5.1>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,c88e1aa9ea98dc80
X-Google-Attributes: gidf86c8,public
From: scandisk@ctv.es (Esteban)
Subject: Re: Renombrar texto de un archivo
Date: 2000/08/22
Message-ID: <slrn8q5q47.c70.scandisk@localhost.localdomain>
X-Deja-AN: 661282170
Content-Transfer-Encoding: 8bit
References: <slrn8q5acj.8t3.scandisk@localhost.localdomain> <bqiun8.4s2.ln@192.168.5.1>
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@wanadoo.es
X-Trace: m2newsread.uni2.es 966977708 212.25.130.88 (Tue, 22 Aug 2000 22:55:08 MET DST)
Organization: Servidor Usenet News de Uni2/Wanadoo
Mime-Version: 1.0
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: scandisk@ctv.es
NNTP-Posting-Date: Tue, 22 Aug 2000 22:55:08 MET DST
Newsgroups: es.comp.os.linux.programacion