#!/usr/bin/env bash
while read -r line;do
[[ $line =~ ^##+\ [^\ ] ]] && echo "* ${line#*# }"
done < "$1"
exit 0