“行结尾必须是回车/换行 (CRLF) 对”是什么意思?意思是?
我使用 http://icalvalid.cloudapp.net/Default.aspx 链接来验证以下链接我的日历。我收到警告“行结尾必须是回车/换行(CRLF)对。”。这意味着什么?我需要做什么来删除这个警告。任何人都可以帮助我解决这个问题。 我们将不胜感激您的帮助。谢谢。
I used http://icalvalid.cloudapp.net/Default.aspx link to validate the link of my calendar. And i got the warning "Line endings must be a Carriage Return/Line Feed (CRLF) pair.". What does this mean? What do I need to this to remove this warning. Can anyone please help me on this issues.
Your help will be appreciated. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这意味着文件必须是“Windows”格式,而不是 UNIX 格式。如果您从代码创建文件,则意味着您需要在行末尾写入“\r\n”,而不仅仅是“\n”——假设您使用的是某种有意义的语言, 当然。如果您手动创建文件,请从编辑器将其保存为“DOS 模式”。
It means the file has to be in "Windows" format, rather than UNIX format. If you're creating the file from code, it means that you need to write "\r\n" at the end of the lines, rather than just "\n" -- assuming you're using some language where that makes sense, of course. If you're creating the file by hand, save it in "DOS mode" from your editor.
您似乎正在运行 Linux 或 Mac OS X 机器,它仅使用 LF(换行)ASCII 值作为行结尾。
Windows 使用 CRLF(回车;换行)作为行结束符。
您必须对其进行转换,例如使用 Notepad++(尽管存在专用应用程序)。
It seems you are running a Linux or Mac OS X box, which uses just the LF (line feed) ASCII value for line endings.
Windows uses CRLF (carriage return; line feed) for line endings.
You must convert this, for example with Notepad++ (though dedicated application exist).
tr -d '\r' <用户列表.txt>新列表.txt
tr -d '\r' < userlist.txt > newlist.txt