inp=$1
name=`echo $inp | cut -d, -f1`
abbr=`echo $inp | cut -d, -f2`
q=`echo $inp | cut -d, -f3`
f=`echo $inp | cut -d, -f4`

r="| ${name} \
	|  @${abbr}_${q}_Full.xml#  \
	|  @${abbr}_${f}_Full.xml#  \
	|  @${abbr}-names.txt#  \
	|  @${abbr}-scenes.txt#  \
	|  @${abbr}_df.csv#  \
	|  [Analysis of ${name} ${q}-${f}]  |"

echo $r | \
	vim -E '+s,@\(.\{-\}\)#,\[@\1 \1\],g' +%p +cq /dev/stdin | \
	sed -e 's,\@,https://see.dmu.ac.uk/SEE%20Code/analyseXML/Data%20Files%20Used/,g'