#!/bin/bash DAY=18 SOURCE="2022-08-21-welcome-to-jekyll.markdown" OUT="2022-08-$DAY-$i.markdown" for i in {1..15}; do cp "$SOURCE" "OUT" DAY = $((DAY - 1)) done