Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对嵌套在子目录中的大量 XML 文件中的 BOM 符号有一些问题。其中一些有 BOM,我需要将其删除。我可以为这样的确切目录执行此操作:
dos2unix.exe -r d:\path\to\directory
但我需要一个 BAT 文件之类的东西来删除子目录中文件的 BOM 以节省时间。我怎样才能做到这一点?
听起来您不需要批处理文件,而只是for /R %X in (*.xml) do dos2unix -r %X
for /R %X in (*.xml) do dos2unix -r %X