Article View: es.comp.os.linux.programacion
Article #16220Re: Borrar y añadir con bash
From: Esteban
Date: Tue, 02 May 2000 00:00
Date: Tue, 02 May 2000 00:00
44 lines
1990 bytes
1990 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 p__f@my-deja.com <p__f@my-deja.com> escribi�: >> �Qu� comandos se usan para borrar o a�adir texto en un fichero? >> Supongamos que tengo el fichero prueba.dat >> 1 >> 2 >> 3 >> y quiero a�adir el 4. �C�mo lo tendr�a que hacer? >A�adir algo al final de un fichero de texto es muy simple >echo "4" >> prueba.dat >Para hacer b�squedas complejas, sustituciones y dem�s, busca informaci�n >sobre 'sed' y 'awk'. Por ejemplo >cat prueba.dat | sed '/^2$/d' >eliminar�a la l�nea en que est� el 2. Gracias, eso era lo que buscaba. Por cierto �D�nde hay un manual en castellano para sed y awk? Qu� sea para novatiiiiiiiiiiiiisimos en programaci�n. - -- 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 iD8DBQE5DmHma3aqF90Ua+oRAjUQAJ0doBAdkllYzxL0q8aE6OMBF910zwCfVQac 8/CpWS+X4PPRlpb/VHy9FcE= =D2H5 -----END PGP SIGNATURE-----
Technical Details
Message-ID:
<slrn8gsof7.ml.scandisk@localhost.localdomain>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<slrn8grlbp.jm.scandisk@localhost.localdomain> <8eksgd$254$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,efab915ba8e1f9c3 X-Google-Attributes: gidf86c8,public From: scandisk@ctv.es (Esteban) Subject: Re: Borrar y añadir con bash Date: 2000/05/02 Message-ID: <slrn8gsof7.ml.scandisk@localhost.localdomain> X-Deja-AN: 618139148 Content-Transfer-Encoding: 8bit References: <slrn8grlbp.jm.scandisk@localhost.localdomain> <8eksgd$254$1@nnrp1.deja.com> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@news.wanadoo.es X-Trace: m2newsread.uni2.es 957244735 62.36.126.18 (Tue, 02 May 2000 07:18:55 MET DST) Organization: Wanadoo Usenet News - Visita http://www.wanadoo.es/ Mime-Version: 1.0 User-Agent: slrn/0.9.6.2 (Linux) Reply-To: scandisk@ctv.es NNTP-Posting-Date: Tue, 02 May 2000 07:18:55 MET DST Newsgroups: es.comp.os.linux.programacion