【发布时间】:2018-03-05 05:24:51
【问题描述】:
我需要一个在 Linux 终端中使用的 bash 脚本,它应该类似于:
#!/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
即我需要遍历扩展名为.textgrid 和.wav 的文件对,因为在我的Praat 脚本pitch.praat 中有两个参数要传递。如何通过 bash 脚本实现它?
【问题讨论】:
-
迭代其中一个并交换扩展名。
标签: bash