Add some notes and set the default file
[advent-of-code-2019.git] / day9 / run.sh
1 #!/bin/bash
2
3 set -u
4 set -e
5
6 . $(dirname $(readlink -f ${BASH_SOURCE}))/computer.sh
7
8 #data=(109 1 204 -1 1001 100 1 100 1008 100 16 101 1006 101 0 99)
9 #data=(1102 34915192 34915192 7 4 7 99 0)
10 #data=(104 1125899906842624 99)
11 exec 3<input.txt
12
13 OLDIFS=$IFS
14 IFS="," read -u 3 -a orig_data
15 IFS=$OLDIFS
16
17 run_program orig_data