Start of conversion of tcsh scripts to Bash