1. 最近在使用sqlldr 导入数据时,总是报非法数字这个错误。
结果发现原来是文件格式的错误,需要将文件dos2unix.
2. 如何判断linux文件是否是dos格式
方法如下:
1。 grep "^M" 文件名称。
^M 是ctrol + V + M 打出来的。
2。file 文件名
bash-3.2$ file test.txt
test.txt: ASCII text, with CRLF line terminators
with CRLF line terminators 代表是dos格式
bash-3.2$ file test.txt
test.txt: ASCII text 代表是unix 格式