From 3fe6b20f1f00aedeaaf3341dd8a8fd103b90acd4 Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 22 Aug 2024 08:44:22 +0000 Subject: [PATCH] Fix answer. 2,$-1g/^/.,.1j does not combine every even-numbered line with the next odd-numbered line. One correct way is 2,$-1g/^/.,+1j Pointed out by ed1conf on mastodon. --- games/quiz/datfiles/ed | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/quiz/datfiles/ed b/games/quiz/datfiles/ed index 6ac8e89a9b4..945f43ebfd4 100644 --- a/games/quiz/datfiles/ed +++ b/games/quiz/datfiles/ed @@ -15,7 +15,7 @@ print every "Oxygen" or "oxygen":[g|1,$g]/\[[Oo|oO]\]xygen/[p|.p] change each "BTL" in file to "Bell Laboratories" and check:\ [g|1,$g]/BTL/[s|.s]/[/|BTL/]Bell Laboratories/gp combine every even-numbered line with the next odd-numbered line:\ -2,${-{1}}g/[^|$]/[j|.,{.}+{1}j|.,.1j] +2,${-{1}}g/[^|$]/[j|.,{.}+{1}j|.,+1j] print next "SH" and following line:\ /SH/;[{.}+{1}|.1]p|/SH/,[//|/SH/][{.}+{1}|.1]p print from next "TS" to following "TE":/TS/;/TE/p -- 2.20.1