In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you what linux shell escape characters are, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
\ t
A tab that represents a horizontal
\ v
Represents a vertical tab
\ b
Indicates a backwards character
\ a
Means "warning" (buzzing or flashing)
\ 0xx
Translated into the characters represented by the ASCII code as octal 0xx
\ "
Indicates the literal meaning of quotation marks (")
1 echo "Hello" # Hello 2 echo "\" Hello\ ", he said." # "Hello", he said.
\ $
Represents the literal meaning of the dollar sign ($) (if the variable name is followed by\ $, the value of the variable will not be referenced)
1 echo "\ $variable01" # output is $variable01
\\
Indicates the literal meaning of the backslash (\)
1 echo "\" # output is\ 2 3 # however. . . 4 5 echo "\" # on the command line, this sentence will print the value of the SP2 variable and ask you to continue typing.. 6 # in the script file, this sentence will make an error.
The role of a backslash depends on whether it is self-escaping, referenced, or present in a command substitution structure or in a here document.
1 # simple escape and reference 2 echo\ z # z 3 echo\\ z #\ z 4 echo'\ z` #\ z 5 echo'\ z' #\ z 6 echo "\ z" # 7 echo "\\ z" #\ z 8 9 # command replace 10 echo `echo\ z` # z 11 echo `echo\\ z` # z 12 echo `echo\\ z` #\ z 13 echo `echo\\ z` #\ z 14 Echo `echo\ z` #\ z 15 echo `echo\ z` #\ z 16 echo `echo "\ z" `#\ z 17 echo `echo "\\ z"` #\ z 18 19 # Here document 20 cat
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.