Day 1 scripts can now take arbitrary files

This commit is contained in:
Logan G 2023-12-04 22:43:05 -07:00
parent 57ddd3cb0a
commit 983e4a56a2
Signed by: logan
GPG key ID: E328528C921E7A7A
2 changed files with 2 additions and 2 deletions

View file

@ -9,6 +9,6 @@ while read f; do
echo $SUM + $i
SUM=$(( $SUM + $i ))
done
done < input
done < "$1"
echo $SUM

View file

@ -22,6 +22,6 @@ while read f; do
echo $f: $FIRST$LAST
SUM=$(( $SUM + $FIRST$LAST ))
#sleep 1
done < input
done < "$1"
echo $SUM