os-dependent

'^M' character at end of lines

会有一股神秘感。 提交于 2019-11-26 17:21:19
When I run a particular SQL script in Unix environments, I'm am seeing a '^M' character at the end of each line of the SQL script as it is echoed to the command-line. I don't know on which OS the SQL script was originally created. What is causing this and how do I fix it? It's caused by the DOS/Windows line-ending characters. Like Andy Whitfield said, the Unix command dos2unix will help fix the problem. If you want more information, you can read the man pages for that command. Tim Abell Fix line endings in vi by running the following: :set fileformat=unix :w ColinYounger The cause is the

'^M' character at end of lines

情到浓时终转凉″ 提交于 2019-11-26 05:24:24
问题 When I run a particular SQL script in Unix environments, I\'m am seeing a \'^M\' character at the end of each line of the SQL script as it is echoed to the command-line. I don\'t know on which OS the SQL script was originally created. What is causing this and how do I fix it? 回答1: It's caused by the DOS/Windows line-ending characters. Like Andy Whitfield said, the Unix command dos2unix will help fix the problem. If you want more information, you can read the man pages for that command. 回答2: