Linuxecho Command Introduction 1 purpose: 1) print information, including: variable value, string, etc. 2) in shell programming, help debug program 2 common parameters:-n: print the information without line feed-e: escape the string www.2cto. com3 example: Example 1: [root @...
Linux echo command introduction
1 Purpose: 1) print information, including: variable values, strings, etc. 2) in shell programming, help debug program 2 common parameters:-n: print information without line feed-e: example 1: [root @ localhost ~] # Echo $ LANG zh_CN.UTF-8 Example 2: [root @ localhost ~] # Echo-n "please input your name:"; read name; echo "your name is: $ name" please input your name: think your name is: think Example 3: [root @ localhost ~] # Echo-e "hello \ fworld" hello world
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