#!/bin/bash
echo ".. -*- mode rst -*-">$1.txt
echo "" >>$1.txt
t=$(echo $1 | tr "[:alpha:]" "=")
echo $t>>$1.txt
echo $1>>$1.txt
echo $t>>$1.txt
echo "">>$1.txt
ls *$1* | while read i;do echo "* \`"$(basename $i .txt | tr "-" " ")" <$i>\`_";done >>$1.txt


