modify filter_waveform.sh i --> $i