🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sustituir una sola vez con sed (o perl)

#13286
From: Han Solo
Date: Thu, 08 Mar 2001 00:47
35 lines
2299 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

kuantiko@escomposlinux.org (Jes�s Carrete   Monta�a) writes:

>         A ver si esta soluci�n chapucera te ayuda. Sabemos entre qu�
> l�neas puede aparaecer la primera ocurrencia, �no? Digamos la 1 y la
> 4, y que entre esas no aparece ninguna otra. Pues se lo marcamos a
> sed. Encierra las sentencias a ejecutar en un bloque 1,4{} . A ver si
> te vale.

El problema es que no se puede saber a que altura aparece el primer
%%Page: Depender� de c�mo y con qu� est� generado el fichero PS. Al
final, lo he resuelto con perl, mira en otro mensaje de eset hilo.

- -- 
Un Saludo

Han Solo
The Rebel Alliance

Emacs is not on every system

So what? [...] Do you tell your administrative people to stick with
notepad.exe? Do you tell your fat kids they can only have the crummy
games that come with their video games or plain dress that comes with
Barbie?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.5 and Gnu Privacy Guard <http://www.gnupg.org/>

iEYEARECAAYFAjqm1p4ACgkQ4FjpJaPEp21DUQCfWN569H4y4GEzGlt8X0Q7LKt4
qeIAnidVaIzGtvhRqtMQU18uN+Y1Hp7f
=nFpJ
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <87k8616q8l.fsf@alderaan.maptel.es>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!newsfeed.icl.net!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!212-7-51-145.wolbiz.worldonline.ES!not-for-mail
References: <8766hn6jpk.fsf@alderaan.maptel.es> <87n1aycbkx.fsf@relativistic.homeip.net>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,57bf867c8699b7fc
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-03-07 19:04:10 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!newsfeed.icl.net!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!212-7-51-145.wolbiz.worldonline.ES!not-for-mail
From: Han Solo <hsolo@escomposlinux.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Sustituir una sola vez con sed (o perl)
Date: 08 Mar 2001 01:47:38 +0100
Organization: The Rebel Alliance
Lines: 35
Message-ID: <87k8616q8l.fsf@alderaan.maptel.es>
References: <8766hn6jpk.fsf@alderaan.maptel.es> <87n1aycbkx.fsf@relativistic.homeip.net>
NNTP-Posting-Host: 212-7-51-145.wolbiz.worldonline.es (212.7.51.145)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 984020484 663707 212.7.51.145 (16 [63837])
X-Server-Date: 8 Mar 2001 00:47:38 GMT
User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7