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: David Haller <dnh@xxxxxxxxxxxx>
Date: Wed, 21 Sep 2011 22:36:05 +0200
Delivered-to: opensuse@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 21 Sep 2011 16:38:05 -0400
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <j59cgl$vd2$1@saturn.local.net>
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>
Mail-followup-to: opensuse@xxxxxxxxxxxx
Mailing-list: contact opensuse+help@xxxxxxxxxxxx; run by mlmmj
Organization: What?
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>
User-agent: Mutt/1.5.21 (2010-09-15)
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).

*HTH,
-*dnh

-- 
"pistolas de escondrijo de los Espías como *squirrels escondrijo *acorns." -- Aviso de quemadura, 1*x12
-- 
A *unsubscribe, *e-correo: *opensuse+unsubscribe@xxxxxxxxxxxx
Puesto que órdenes adicionales, *e-correo: *opensuse+help@xxxxxxxxxxxx


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).

HTH,
-dnh

-- 
"Spies hide guns like squirrels hide acorns." -- Burn Notice, 1x12
-- 
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx


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