X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=get.sh;h=f888a90c65bb88069eb952d69a5e87d3af5d20e5;hb=HEAD;hp=e5b394dffbc0269b96686ed1c5f045b420fb5ee3;hpb=4e1986293b6f8ff1893dad78013b1d93dd346f64;p=aoc2021.git diff --git a/get.sh b/get.sh index e5b394d..f888a90 100755 --- a/get.sh +++ b/get.sh @@ -12,7 +12,7 @@ WAITSEC=`expr $STARTSEC - $NOW` if [ $WAITSEC -gt 0 -a $WAITSEC -lt $MAXWAIT ] then - echo "Waiting for $WAITSEC seconds till $START ..." + echo "Waiting for $WAITSEC seconds till $START for getting $FILE ..." sleep $WAITSEC fi @@ -20,7 +20,9 @@ URL="https://adventofcode.com/2021/day/$DAY/input" echo echo "Downloading $URL to $FILE" curl -s -b "$COOKIE" "$URL" --output "$FILE" -echo +echo ======================================================================== +cat "$FILE" +echo ======================================================================== echo "lines words chars" wc "$FILE" echo