From 5e6f764b8f6d6582c395f1e9e5e2f57e184b39c5 Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Wed, 2 Dec 2020 13:34:29 +0100 Subject: [PATCH] open script --- open.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 open.sh diff --git a/open.sh b/open.sh new file mode 100755 index 0000000..cfdcd08 --- /dev/null +++ b/open.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +day=$(date +'%-d') +day0=$(date +'%d') + +/usr/bin/open https://adventofcode.com/2020/day/$day/input + +curl -b cookies.txt https://adventofcode.com/2020/day/$day/input -o day$day0/data/data.txt +curl -b cookies.txt https://adventofcode.com/2020/day/$day -o day$day0/index.html