5 lines
190 B
Bash
5 lines
190 B
Bash
|
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"
|