From db05329d5c220c2106abef89226ff7ccc251b5c8 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 13 Dec 2024 14:10:35 +0100 Subject: Remove auxiliary files --- 2016/04/puzzle-2.sh | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 2016/04/puzzle-2.sh (limited to '2016/04/puzzle-2.sh') diff --git a/2016/04/puzzle-2.sh b/2016/04/puzzle-2.sh deleted file mode 100755 index 3e2c333..0000000 --- a/2016/04/puzzle-2.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -# This is slow, but it’s fun! That’s what counts! - -while IFS='[]' read -r line cksum; do - sid=`echo $line | grep -o '[0-9]*'` - echo $line \ - | tr -d -- '-0-9\n' \ - | sed 's/./&\n/g' \ - | sort \ - | uniq -c \ - | sort -k1nr \ - | head -n5 \ - | awk "{ s = s \$2 } END { if (s == \"$cksum\") print \"$line\" }" -done