Tabs and newline methods under linux
This article focuses on "tabs and line wrapping under linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "tabs and line wrapping under linux".
Tabs and line breaks under linux
One:
Tabs and newlines under linux are represented by\ t\ t and\ n\ n
For example:
$str = "
Aa
Bb
Cc
"
Echo preg_replace ("/\ n\ n |\ r\ rgamot I", "", $str)
Output: aabbcc
Denoted by\ n and\ t under windows
Two:
To enter tabs from the keyboard under linux, you need to press Ctrl+v+tab at the same time.
In addition, you can echo-e "a\ tb" if you want to echo tabs.
At this point, I believe you have a deeper understanding of "tabs and line wrapping methods under linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!