Tab and return character sequences for solaris?

2019-07-21 05:40发布

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

thanx

3条回答
Anthone
2楼-- · 2019-07-21 05:44

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.

查看更多
Evening l夕情丶
3楼-- · 2019-07-21 05:47
  • \t = tab
  • \r = carraige return
  • \n = newline

Solaris standard line delimiter is \n

查看更多
干净又极端
4楼-- · 2019-07-21 05:48

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.

查看更多
登录 后发表回答