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.
我想在批处理文件中将 CR 转换为 CR+LF。我可以通过编写批处理文件来做到这一点。请帮忙。
我正在从文件中获取输入,在该文件中我想将 CR 更改为 CR+LF
你可以使用旧的 unix 命令 awk:
awk 'sub("$", "\r")' unix.txt > win.txt