我的Mac(10.14.3)具有大约60个txt文件,我需要将它们组合成一个XML文件。有没有办法使它自动化?是通过Applescript,terminal,excel还是其他任何程序?数据示例:
Filenames:
fileone.txt
filetwo.txt
XML Format:
<xml>
<item>
<title>fileone</title>
<content>All of the extracted text, including all punctuation and quotations, from my first txt file.</content>
</item>
<item>
<title>filetwo</title>
<content>All of the extracted text, from my second txt file.</content>
</item>
</xml>