+ day 06, part 01

meow
Dominique Liberda 2022-12-09 13:46:22 +01:00
parent 11c9fba2c4
commit e73fd9a4c7
2 changed files with 18 additions and 0 deletions

13
06/01.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
x=()
i=0
while read -n1 a; do
x=(${x[@]:0:3})
x=($a ${x[@]})
i=$((i+1))
[[ $(echo ${x[@]} | tr ' ' '\n' | sort | uniq | wc -l) == 4 ]] && break
done < /tmp/06
echo $i

5
06/README.md Normal file
View File

@ -0,0 +1,5 @@
# day 06 (09, oops)
# part 1
*yawns*