summary refs log tree commit diff homepage
path: root/2018
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--2018/day02-2.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/2018/day02-2.sh b/2018/day02-2.sh
index c7876cb..ef8bcc2 100644
--- a/2018/day02-2.sh
+++ b/2018/day02-2.sh
@@ -1,6 +1,6 @@
 input=$(mktemp)
 cat > $input
-for i in $(seq 26); do
+for i in $(seq $(head -n 1 $input | wc -c)); do
 	colrm $i $i < $input | sort | uniq -d
 done
 rm $input