问题
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