diff options
Diffstat (limited to 'bin/fetch_input.sh')
-rwxr-xr-x | bin/fetch_input.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/fetch_input.sh b/bin/fetch_input.sh index d3a96ec..ec09328 100755 --- a/bin/fetch_input.sh +++ b/bin/fetch_input.sh @@ -66,6 +66,7 @@ if [ "${MODE}" = 'wget' ]; then authenticated_wget --output-document "input/${USERNAME}" \ "https://adventofcode.com/${YEAR}/day/${DEC}/input" elinks -dump "./input/page_${DEC}.html" >"input/page_${DEC}.txt" + sed -n 's/^ \([^ ]\)/\1/p' <"input/page_${DEC}.txt" >"input/example.txt" fi elif [ "${MODE}" = 'aocdl' ]; then # One could possibly use the golang implemenation instead of wget: |