AdventOfCode2023/next_day.sh
2023-12-07 12:35:23 +01:00

8 lines
210 B
Bash
Executable File

#!/bin/bash
maxday=$(ls -d */ | sed -r 's|0*(.*)/|\1|g' | tail -1)
nextday=$((maxday + 1))
nextday_dir=$(printf "%02d" $nextday)
mkdir $nextday_dir
sed "s/X/$nextday/g" README.md.temp > $nextday_dir/README.md