Get the App
SLTechnology News&Howtos  ›  Servers  › 

Tabs and newline methods under linux

Shulou Source: shulou.com Published: 2022-06-01 14:20:42 10月03日 Update

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!

Tags: Tabs tabs methods content learning practical deeper interest at the same time practicality practicality newline characters easy to operate more friends websites keyboards channels queries input Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Information Xiaomi Shulou Tech Info Linux