opensuse
[Arriba] [Todas las Listas]

Re: [opensuse] Java Asistencia de guión (ligeramente OT)

To: opensuse@xxxxxxxxxxxx
Subject: Re: [opensuse] Java Asistencia de guión (ligeramente OT)
From: Per Jessen <per@xxxxxxxxxxxx>
Date: Thu, 22 Sep 2011 09:30:36 +0200
Delivered-to: opensuse@xxxxxxxxxxxxxxxxxxx
Delivered-to: newsmoderator@xxxxxxxxx
Delivery-date: Thu, 22 Sep 2011 03:31:16 -0400
Envelope-to: traductor@xxxxxxxxxxx
List-archive: <http://lists.opensuse.org/opensuse/>
List-help: <mailto:opensuse+help@opensuse.org>
List-owner: <mailto:opensuse+owner@opensuse.org>
List-post: <mailto:opensuse@opensuse.org>
List-subscribe: <mailto:opensuse+subscribe@opensuse.org>
List-unsubscribe: <mailto:opensuse+unsubscribe@opensuse.org>
Mailing-list: contact opensuse+help@xxxxxxxxxxxx; run by mlmmj
Organization: Per Jessens personal news-server
References: <201109182047.49943.p.nikolic1@btinternet.com> <j56tpt$p9h$1@saturn.local.net> <201109191435.18504.p.nikolic1@btinternet.com> <j57i0j$qqp$1@saturn.local.net> <20110920032119.GA23424@grusum.endjinn.de> <j59cgl$vd2$1@saturn.local.net> <20110921203605.GC16846@grusum.endjinn.de>
User-agent: KNode/0.10.4
David *Haller escribió:

> Hola,
> 
> En *Tue, 20 *Sep 2011, Por *Jessen escribió:
>>David *Haller escribió:
>>> En *Mon, 19 *Sep 2011, Por *Jessen escribió:
>>>>*sed -*e/\#unknown{^*n/#unknown{^*g' -*e *s'/}/}\*n/*g' -*e *s'/;/;\*n/*g' <*filename
>>>>
>>>>(todavía no seguro si necesitas huir el *curly *brackets).
>>> 
>>> Tú  no, cuando *sed utiliza expresiones regulares básicas (ve 'hombre 7
>>> *regex'), así que necesitas huir {} para conseguir "comportamiento" especial (si
>>> cualquier).
>>
>>*Okay, pero era más pensando de huir para el pelar - para
>>caso,
>>cuándo utilizas () para agrupación, necesitan ser huidos para trabajar.  Cuál
>>pienso(!) Es un pelar asunto, no *sed ?
> 
> Dentro '' sólo necesitas huir ' él, el cual no trabaja, cuando \
> tiene no especial significando cualquier interior de ''.
> *Workaround: '*foo'"'"'Barra' o '*foo'\''barra'
> 
> Dentro "" tienes que *IIRC escapada !"()`` Y $ (el ! Sólo si has
> habilitado historia *substitution (conjunto -*H).

Con *sed, siempre necesito huir +() dentro de '' para conseguirles para trabajar.  Soy
yo haciendo algo mal? 



-- 
Por *Jessen, *Zürich (13.9°*C)

--
A *unsubscribe, *e-correo: *opensuse+unsubscribe@xxxxxxxxxxxx
Puesto que órdenes adicionales, *e-correo: *opensuse+help@xxxxxxxxxxxx


David Haller wrote:

> Hello,
> 
> On Tue, 20 Sep 2011, Per Jessen wrote:
>>David Haller wrote:
>>> On Mon, 19 Sep 2011, Per Jessen wrote:
>>>>sed -e 's/{/\n{/g' -e s'/}/}\n/g' -e s'/;/;\n/g' <filename
>>>>
>>>>(still not sure if you need to escape the curly brackets).
>>> 
>>> You don't, as sed uses basic regular expressions (see 'man 7
>>> regex'), so you need to escape {} to get "special" behaviour (if
>>> any).
>>
>>Okay, but I was more thinking of escaping for the shell - for
>>instance,
>>when you use () for grouping, they need to be escaped to work.  Which
>>I think(!) is a shell issue, not sed ?
> 
> Inside '' you only need to escape ' itself, which doesn't work, as \
> has no special meaning either inside of ''.
> Workaround: 'foo'"'"'bar' or 'foo'\''bar'
> 
> Inside "" you have to IIRC escape !"()`` and $ (the ! only if you've
> enabled history substitution (set -H).

With sed, I always need to escape +() inside '' to get them to work.  Am
I doing something wrong? 



-- 
Per Jessen, Zürich (13.9°C)

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx


<Anterior por Tema] Tema Actual [Siguiente por Tema>