projects
/
advent-of-code-2021.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Day 9
[advent-of-code-2021.git]
/
day02
/
sub.sh
diff --git
a/day02/sub.sh
b/day02/sub.sh
old mode 100644
(file)
new mode 100755
(executable)
index
b8040aa
..
2140d4e
--- a/
day02/sub.sh
+++ b/
day02/sub.sh
@@
-1,6
+1,8
@@
#!/bin/bash
-exec 3<input.txt
+filename="${1:-input.txt}"
+
+exec 3<"$filename"
depth=0
horizontal=0
aim=0