I need a bash script for use in the Linux terminal which should go something like:
#!/bin/bash for textgrid_file in ./*.TextGrid and for wav_file in ./*.w
If I understand you right, both filename share the same basename.
#!/bin/bash for textgrid_file in ./*.TextGrid do name=$(basename $textgrid_file .TextGrid) wfile="$name.wav" praat --run pitch.praat "$textgrid_file" "$wfile" >> output.txt done
Extract the common basename with basename.