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