Echo usage in Linux

Source: Internet
Author: User
EchotheSTRING (s) tostandardoutput.-ndonotoutputthetrailingnewline output text does not wrap-eenableinterpretationofbackslashescapes interprets the escape character with the special character behind it as special meaning...

Echo the STRING (s) to standard output.


-N do not output the trailing newline
Output text does not wrap
-E enable interpretation of backslash escapes
The escape character and the special character behind it are interpreted as special meanings.
-E disable interpretation of backslash escapes
(Default)
Escape characters are not interpreted.
-- Help display this help and exit
Help
-- Version
Output version information and exit
Display version and other information
If-e is in effect, the following sequences are
Recognized: when-EIS used, the special characters are as follows:


\ Backslash
Show \
\ A alert (BEL)
Generate an alarm
\ B backspace
Delete the previous character
\ C produce no further output
Do not add line breaks.
\ E escape
One forward character
\ F form feed
Line feed but the cursor stays at the original position
\ N new line
Line Feed
\ R carriage return
Move the cursor to the beginning of the line without line breaks
\ T horizontal tab
Insert TAB
\ V vertical tab
Line feed but the cursor stays at the original position
\ 0NNN byte with octal value NNN (1 to 3 digits)
ASCII bytes represented by octal
\ XHH byte with hexadecimal value HH (1 to 2 dig-
Its)
ASCII bytes in hexadecimal notation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.