summaryrefslogtreecommitdiff
path: root/games/quiz
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2024-08-22 08:44:23 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2024-08-22 08:44:23 +0000
commit1af55c9da57b06cc225fdbdc916ce95cd377e1e0 (patch)
tree3d9e044c2090c3ccfd763349ab0f93821f831b0f /games/quiz
parent3710b3af3c4b32864e31c5743bc33a9f219da0ff (diff)
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.
Diffstat (limited to 'games/quiz')
-rw-r--r--games/quiz/datfiles/ed2
1 files changed, 1 insertions, 1 deletions
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