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