open script

This commit is contained in:
2020-12-02 13:34:29 +01:00
parent d7c317e511
commit 5e6f764b8f

9
open.sh Executable file
View File

@@ -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