Tab and return character sequences for solaris?

∥☆過路亽.° 提交于 2019-12-10 22:28:29

问题


Is tab character in "\t" or "\r\t" in Solaris ? And the new line character sequence \n or \r\n ?

thanx


回答1:


  • \t = tab
  • \r = carraige return
  • \n = newline

Solaris standard line delimiter is \n




回答2:


A tab character is "\t", always. A newline on Solaris is "\n", the only time a newline is "\r\n" is in DOS/Windows land.




回答3:


Tab is always "\t", carriage-return is "\r", and newline is "\n".

To be very specific, the end-of-line (EOL) marker on DOS-based systems is "\r\n". It's apparently just a carriage-return on early Apple systems, and just newline on most others.



来源:https://stackoverflow.com/questions/975142/tab-and-return-character-sequences-for-solaris

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!