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

Linux notes 5 pipe characters, redirects, and environment variables; Vim editor and Shell command scripts.

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

Share

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

Input and output redirection: write to a file what was originally output to the screen. This operation is called output redirection.

Pipeline command: the information that the previous command was supposed to output to the screen is given to the later command for secondary processing.

Wildcard characters on the command line

An asterisk (*) can match a null value or infinity

Say hello (? ) one character. (there must be something to match.)

[amurz] matches a single lowercase letter

[Amurz] matches a single capital letter

[0-9] matches a single number

[1BZ 3P5] matches the specified number

[aMagnec _ e] matches the specified lowercase letter

[AmenthCpence E] matches the specified uppercase letters

Commonly used escape characters

The four most commonly used escape characters are shown below.

Backslash (\): changes a variable after a backslash to a simple string.

Single quotation mark (''): escapes all variables as simple strings.

Double quotation marks (""): the variable attributes are retained without escape processing.

Back quotation mark (``): returns the result after the command is executed.

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