echo of Shell Base command

Source: Internet
Author: User
Tags echo command
the function of the echo command is to display a piece of text on the display, which generally acts as a hint. the general format of the command is: Echo [-n] string where option n means that the output text is not wrapped, the string can be quoted, or it can be unquoted. When you output a quoted string with the Echo command, the string is output as it is, and when you output an unquoted string with the echo command, each word in the string is output as a string, separated by a space between the strings. echo * Lists all files and directories in the current directory. echo *.jpg lists all files in JPEG image format.  echo ${home}/public_html/*.jpg lists all JPEG files in the public_html directory in the HOME directory. Echo (option) (parameter) option-e: Activates the escape character. When using the-e option, the following characters in the string are handled in particular, rather than being treated as general text output:? \a a warning sound; \b Delete the previous character;? The \c is not added to the newline symbol at the end of the line but the cursor is still in the original position;? \ n line up and the cursor moves to the beginning; The cursor moves to the beginning of the line, but does not wrap; \ t inserts the same tab;?\v as \f; \ \ \ insert \ character;? \nnn Insert the ASCII character represented by NNN (octal); parameter variable: Specifies the variable to print. Echo-n no newline output $echo-n "123" $echo "456" final output 123456

echo of Shell Base command

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.