Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Enter and change the line under linux/unix Windows mac.

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

In linux and Unix systems, there is only "\ n" at the end of each line.

In dos and Windows systems, each line ends with "", that is, "\ n\ r"

In the Mac system, each line ends with "" that is "\ r"

One direct consequence is that if files under Unix/Mac are opened in Windows, all text will become one line, while files in Windows will have an extra ^ M symbol at the end of each line if they are opened under Unix/Mac.

In text processing, CR, LF, and CR/LF are line breaks used on different operating systems.

Dos and windows use enter + newline CR/LF to represent the next line.

UNIX/Linux uses the newline character LF for the next line.

The Macintosh (MAC OS system) uses the carriage return character CR to represent the next line.

CR is denoted by the symbol'\ r'. The decimal ASCII code is 13 and the hexadecimal code is 0x0D.

LF uses the'\ n 'symbol to indicate that the ASCII code is 10 and the hexadecimal system is 0x0A.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report