Files
python-aoc-2020/newday.sh
Sebastian Seedorf c116e1f37c Init script
2020-12-15 09:09:34 +01:00

17 lines
231 B
Bash

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"