aoc/get_input.sh

11 lines
206 B
Bash
Raw Normal View History

2022-12-03 22:11:42 +00:00
#!/usr/bin/env bash
set -euo pipefail
day=$1
dir=$(printf "day_%02d" "$day")
mkdir -p "$dir"
curl -H "Cookie: $(cat ./session.cookie)" https://adventofcode.com/2022/day/"$day"/input -o "$dir"/input.txt