🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Un poco mas de shell script

#1387
From: David Serrano (Hue-Bond)
Date: Thu, 26 Jan 2006 19:45
26 lines
1804 bytes
Alex Estevez, jue20060126@13:28:04(CET):
>
> Si, pero en teoria, y cambiando el delimitador funciona, pero, al 
> expandir las barras (/) si estas estan en condiciones (\/) no deberia 
> haber problema no? (que lo hay)

$ A=a_b
$ D=/
$ sed -e "s/_/$D/" <<< $A
sed: -e expresión #1, carácter 6: unknown option to `s'
$ D=\/
$ sed -e "s/_/$D/" <<< $A
sed: -e expresión #1, carácter 6: unknown option to `s'
$ D=\\/
$ sed -e "s/_/$D/" <<< $A
a/b
$ D='\/'
$ sed -e "s/_/$D/" <<< $A
a/b
$ _

Es cosa del shell.


-- 
 David Serrano
Technical Details
Message-ID: <slrndti9mi.vj6.responder_solo_en_el_grupo@genus.hue-bond.info>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!news.antakira.com!antonio.escomposlinux.org!cernicalo.escomposlinux.org!escomposlinux.org!not-for-mail
References: <dr7o4r$ecf$1@news-16.escomposlinux.org> <slrndtfrhf.tjq.responder_solo_en_el_grupo@genus.hue-bond.info> <drafbq$fsi$1@news-16.escomposlinux.org>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,8bfa9fb4b1bf2a2b
X-Google-Attributes: gidf86c8,public
X-Google-Language: SPANISH,UTF8
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!news.antakira.com!antonio.escomposlinux.org!cernicalo.escomposlinux.org!escomposlinux.org!not-for-mail
From: "David Serrano (Hue-Bond)" <responder_solo_en_el_grupo@yahoo.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Un poco mas de shell script
Date: Thu, 26 Jan 2006 19:45:23 +0000 (UTC)
Organization: I work for myself
Lines: 26
Message-ID: <slrndti9mi.vj6.responder_solo_en_el_grupo@genus.hue-bond.info>
References: <dr7o4r$ecf$1@news-16.escomposlinux.org> <slrndtfrhf.tjq.responder_solo_en_el_grupo@genus.hue-bond.info> <drafbq$fsi$1@news-16.escomposlinux.org>
NNTP-Posting-Host: 195.red-88-0-17.dynamicip.rima-tde.net
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: cormoran.emeteo.local 1138304723 4209 88.0.17.195 (26 Jan 2006 19:45:23 GMT)
X-Complaints-To: emeteo@escomposlinux.org
NNTP-Posting-Date: Thu, 26 Jan 2006 19:45:23 +0000 (UTC)
X-Message-Flag: Visit http://www.debian.org/
X-MSMail-Priority: High
Mail-Copies-To: nobody
User-Agent: slrn/0.9.8.1pl1 (Debian)