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: Tue, 20 Sep 2011 08:40:22 +0200
Delivered-to: opensuse@xxxxxxxxxxxxxxxxxxx
Delivered-to: newsmoderator@xxxxxxxxx
Delivery-date: Tue, 20 Sep 2011 03:57:21 -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>
User-agent: KNode/0.10.4
David *Haller escribió:

> Hola,
> 
> 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 ?


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

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


David Haller wrote:

> Hello,
> 
> 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 ?


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

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


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