#!/usr/bin/env bash declare -i w=0 while IFS= read -r line; do echo "## Week $w: $line" echo ((w++)) done < <(boostdates "$@")