4 lines
207 B
Bash
Executable File
4 lines
207 B
Bash
Executable File
#!/bin/bash
|
|
set -eu -o pipefail
|
|
curl -fsS https://adventofcode.com/2024/day/"$1" | awk '/<pre><code>/ {sub("<pre><code>", ""); CODE=1; IDX+=1} /<\/code>/ {CODE=0} CODE {print > sprintf("sample%d.in", IDX)}'
|