aoc24/load-todays-input.bash

5 lines
190 B
Bash
Raw Normal View History

2024-12-08 22:54:00 +01:00
day=$(date +%-e)
day_zero=$(date +%0e)
session=$(cat .sessioncookie)
mkdir -p input
curl -b "session=${session}" -o "./input/${day_zero}.txt" "https://adventofcode.com/2024/day/${day}/input"