#!/bin/bash while [ "$#" -gt 0 ]; do echo "### $1:" echo '```' cat "$1" echo '```' [ "$#" -gt 1 ] && printf "\n\n" shift done