#!/bin/bash function path_to_name { PROGRAMPATH=$1 echo ${PROGRAMPATH//\_/\ } } function buildProg() { directory="$1" cat > programme_options.tex <