每个记录可以由行尾字符进行分隔。
如果随后进行粘贴,则会粘贴整行文本及其行尾字符。
If you then paste, the text of the entire line and its end-line character are pasted.
但是readline方法在读入指定数量的字符后,还会继续读取,直到行尾。
The readline method, however, reads the specified number of characters and continues reading until the end of that line.
MacOS的行尾以回车字符结束,许多文本处理工具将这样的文件作为一行来处理。
Mac OS ends lines with the carriage return character, and many text processing tools treat such files as a single line. To fix that, we can use the following tricks.
每一行尾部的 \字符告知shell 后面还有内容;该行还未结束。
The \ characters at the end of each line tell the shell that more is coming; the line is not over yet.
每一行尾部的 \字符告知shell 后面还有内容;该行还未结束。
The \ characters at the end of each line tell the shell that more is coming; the line is not over yet.
应用推荐