2023/get_today_puzzle.sh
Fedaya e46a2717b4 Day 5 part1 completed
Also, deleted an example_input.txt, modified .gitignore
added a script to get the current day's input
2023-12-05 07:18:55 +01:00

5 lines
236 B
Bash
Executable File

#!/bin/bash
DAY=`date "+%-e"`
mkdir day${DAY}
# You have to get your cookie header in text format (Cookie: session=xxxx)
wget --verbose --header "`cat cookies.txt`" "https://adventofcode.com/2023/day/${DAY}/input" -O day${DAY}/input.txt