adventofcode/new_day

11 lines
163 B
Plaintext
Raw Normal View History

2023-11-28 16:15:16 +01:00
#!/bin/bash
if [ -z "$1" ]; then
echo "Expected file ending"
exit;
fi
year=$(date +%Y)
day=$(date +%d)
cp ./$year/src/template.$1 ./$year/src/day$day.$1