🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: sed y reempazo de texto

#7667
From: Fernando Arbeiza
Date: Wed, 05 Feb 2003 22:46
18 lines
1472 bytes
Hola:

On Wed, 05 Feb 2003 23:28:20 +0100, Pacolinx <pacolinux@BORRAMEinicia.es> wrote:
> todo lo que aparece con: /hdd/pagina/x.png
> y que me quede solo x.png
> Siendo x, varios nombres
> 
> sed -e 's/hdd/pagina/ /< fichero.htm

Ten en cuenta que est�s utilizando el car�cter '/' como separador, luego
sed no te lo reconocer�. Debes hacer algo como:

    sed 's%/hdd/pagina/%%g' fichero.htm > fichero.htm.new

Un saludo.
-- 
Fernando Arbeiza        <URL: mailto:arbeizaf@ono.com>
Crea tu propio Linux:   <URL: http://www.escomposlinux.org/lfs-es>
Technical Details
Message-ID: <slrnb43530.o84.arbeizaf@jupiter.olimpo>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!81-203-248-140.user.ono.COM!not-for-mail
References: <4pf8h-fj1.ln1@paldaria.dsland.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,4d5cb4eb9f009989
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-02-05 14:56:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!81-203-248-140.user.ono.COM!not-for-mail
From: Fernando Arbeiza <arbeizaf@ono.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: sed y reempazo de texto
Date: Wed, 5 Feb 2003 23:46:56 +0100
Lines: 18
Message-ID: <slrnb43530.o84.arbeizaf@jupiter.olimpo>
References: <4pf8h-fj1.ln1@paldaria.dsland.org>
NNTP-Posting-Host: 81-203-248-140.user.ono.com (81.203.248.140)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1044485761 38620337 81.203.248.140 (16 [148301])
X-Orig-Path: jupiter.olimpo!news
User-Agent: slrn/0.9.7.4 (Linux)