您可以使用以下sh脚本进行递归删除当前子文件夹中的所有txt文件: find . -name "*.txt" -type f -delete 这将在当前文件夹及其子文件夹中查找所有名为"*.txt"的文件,并将其删除。