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 ./*.wav
do
praat --run pitch.praat "$textgrid_file" "$wav_file" >> output.txt
done
I.e. I need to iterate through pairs of files with extensions .textgrid
and .wav
because in my Praat script pitch.praat
I have two arguments to pass. How can I implement it via bash scripting?