更新时间:2023-09-24 21:59:40
您可以处理来自一行找到
线,改造&LT的结果;文件>的.xml
到<文件>的.csv
:
You could process the results from find
line by line and transform <file>.xml
into <file>.csv
:
find /results/ -type f -name "*Metadata*.xml" | while read file; do java -jar $SAXON/saxon9h3.jar -o:${file%.xml}.csv $file $WORKDIR/transform.XMI.xsl; done
这个简单的方法的情况下,文件名有自己的路径/名称空间将失败。
This simple approach fails in case the file names have spaces in their paths/names.