fixed the bash script to do both the fft and fht