]> www.fi.muni.cz Git - aoc2021.git/blob - get.sh
.gitignore file
[aoc2021.git] / get.sh
1 #!/bin/bash
2
3 DAY=`date +%e|sed 's/ //g'`
4 FILE="$((2*DAY - 1))in.txt"
5 COOKIE=`cat cookie`
6
7 URL="https://adventofcode.com/2021/day/$DAY/input"
8 echo "Stahuji $URL do $FILE"
9 curl -q -b "$COOKIE" "$URL" --output "$FILE"