17 lines
231 B
Bash
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"
|