🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Borrado de línea

#14167
From: J.A. Gutierrez
Date: Wed, 29 Nov 2000 00:00
14 lines
1468 bytes
oscar <omgs@nospaminicia.es> wrote:
: Quiero sustituir una l�nea de texto. Digamos que la l�nea empieza por
: "texto" contin�a con un n�mero o cualquier n�mero n�mero de caracteres.
: As�, si la l�nea tiene "texto 4464" (o cualquier otro n�mero de no se
: sabe qu� longitud), reemplazarlo por "texto 4" (o el n�mero que yo
: elija).

	sed -e 's/\(.*\) \([0-9]*\)/\1 4/'

-- 
PGP and other useless info at      \                 La ciencia-ficcion es
http://www.cps.unizar.es/~spd/      \                 ese futuro en el que
finger://daphne.cps.unizar.es/spd    \                 lo seguro es que ya
ftp://ivo.cps.unizar.es/pub/          \    (F. Alfaro)  no seremos jovenes
Technical Details
Message-ID: <902nte$hqp$1@news.unizar.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3A2402CB.AC141A9B@NOSPAMinicia.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,64ccf8d467e9a5cd
X-Google-Attributes: gidf86c8,public
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Subject: Re: Borrado de línea
Date: 2000/11/29
Message-ID: <902nte$hqp$1@news.unizar.es>
X-Deja-AN: 699060818
Content-Transfer-Encoding: 8bit
References: <3A2402CB.AC141A9B@NOSPAMinicia.es>
Content-Type: text/plain; charset=ISO-8859-1
X-Complaints-To: usenet@news.unizar.es
X-Trace: news.unizar.es 975495918 18265 155.210.152.20 (29 Nov 2000 11:05:18 GMT)
Organization: Rank
Mime-Version: 1.0
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (IRIX/6.2 (IP22))
NNTP-Posting-Date: 29 Nov 2000 11:05:18 GMT
Newsgroups: es.comp.os.linux.programacion