From 425c822826314a31f26cee06b9ac2520351c8829 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 1 Dec 2024 20:01:11 +0100 Subject: Make use of NR --- 2024/01/puzzle-2.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '2024/01/puzzle-2.awk') diff --git a/2024/01/puzzle-2.awk b/2024/01/puzzle-2.awk index 8400a16..75ab83a 100755 --- a/2024/01/puzzle-2.awk +++ b/2024/01/puzzle-2.awk @@ -1,7 +1,7 @@ #!/usr/bin/awk -f { - xs[++i] = $1 + xs[NR] = $1 ys[$2]++ } -- cgit v1.2.3