demexp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Demexp-dev] Depencies of ocaml-gettext and other problems


From: David MENTRE
Subject: Re: [Demexp-dev] Depencies of ocaml-gettext and other problems
Date: Sat, 23 Sep 2006 17:37:45 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Christophe,

GISQUET Christophe <address@hidden> writes:

> When I fall short of Navy commandos for breakfast, I usually have sed
> scripts instead:
> sed ':a; /^#:/N; s/\n#://; ta' <file>

Ouch, quite impressive! Patch applied but some explanation would be
nice. :-)

If I understood correctly:

 - put label "a";

 - for each line starting with "#:", add them to the "pattern space";

 - remove each pattern "\n#:";

 - branch to label "a" if previous substitution is successful.

Am I correct?

Best wishes,
d.
-- 
GPG/PGP key: A3AD7A2A David MENTRE <address@hidden>
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A




reply via email to

[Prev in Thread] Current Thread [Next in Thread]