Sometime exported data from excel may contains ‘^M’ issues, so that cannot process data further without removing the annoying ‘^M’. Approach to replace ‘^M’ characters with newline in *inux.
Open the file via vim, then replace the ‘^M’ characters which generate by ctl-v+ctl-m with \r like this:
:%s/ctl-v+ctl-m/\r/g
:wq
本文介绍了一种在Linux环境下解决从Excel导出文件中出现的^M字符问题的方法。通过使用vim编辑器并执行特定命令,可以将这些特殊字符替换为换行符,从而便于进一步的数据处理。
2843

被折叠的 条评论
为什么被折叠?



