Day 1 scripts can now take arbitrary files
This commit is contained in:
parent
57ddd3cb0a
commit
983e4a56a2
2 changed files with 2 additions and 2 deletions
|
@ -9,6 +9,6 @@ while read f; do
|
|||
echo $SUM + $i
|
||||
SUM=$(( $SUM + $i ))
|
||||
done
|
||||
done < input
|
||||
done < "$1"
|
||||
|
||||
echo $SUM
|
||||
|
|
|
@ -22,6 +22,6 @@ while read f; do
|
|||
echo $f: $FIRST$LAST
|
||||
SUM=$(( $SUM + $FIRST$LAST ))
|
||||
#sleep 1
|
||||
done < input
|
||||
done < "$1"
|
||||
|
||||
echo $SUM
|
||||
|
|
Loading…
Reference in a new issue