Init script

This commit is contained in:
Sebastian Seedorf
2020-12-15 09:09:34 +01:00
parent e6e33b35dd
commit c116e1f37c
2 changed files with 17 additions and 1 deletions

16
newday.sh Normal file
View File

@@ -0,0 +1,16 @@
f="day$1"
echo "$f"
mkdir "$f"
touch "$f/input.txt"
txt=$(cat <<EOF
#!/usr/bin/env python3
lines = (x.strip() for x in open("input.txt"))
for line in lines:
pass
EOF
)
echo "$txt" > "$f/part1.py"
echo "$txt" > "$f/part2.py"