From 6b8948af0976c9d2f5126daf0da1eb4215e7c085 Mon Sep 17 00:00:00 2001 From: Clement Date: Wed, 4 Dec 2024 23:08:09 +0800 Subject: [PATCH] Fix missing check for A at borders --- 2024/day-4/solution-2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2024/day-4/solution-2.sh b/2024/day-4/solution-2.sh index 626441d..0103277 100644 --- a/2024/day-4/solution-2.sh +++ b/2024/day-4/solution-2.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -paste -s -d '' input.txt | +sed 's/^A/B/g;s/A$/B/g' input.txt | paste -s -d '' | perl -lne ' print "$1$4$2$3" while