#!/bin/bash function path_to_name { PROGRAMPATH=$1 echo ${PROGRAMPATH//\_/\ } } if [ "$1" = '' ] then rep='.' else rep="$1" fi function buildProg() { directory="$1" cat > programme_options.tex <