Article Title: Details: how to use Echo in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The
one echo command output text
1.1 displaying normal strings
echo [Options] string
option means that the command option, only-n, does not output a newline character at the end of the line.
If the text you want to output is made up of multiple
See the world from the shell 's eyesecho- display a line of textWhen you enter a command,bash expands on the characters you enter before executing the command. Path expansionecho *The Shell expands * to the name of the file under the current
Echo (1) user commands echo (1)
NameEcho-display a line of text
SynopsisEcho [Option]... [String]...
DescriptionEcho the string (s) to standard output (standard output: Display ).
-N do not output the trailing newline
-E enable interpretation
0.echo Command entry: (Default bash support, CSH not supported)-N does not output line breaks-E Open backslash ESC escape-e Suppress backslash ESC escape (default)Both 1.echo and printf can print output information, except that Echo adds a newline
Suppress half a day to suppress such a bit of code, temporarily make it possible to use ... You need to manually delete the delimiter at the end of the file, as well as a newline of windows:#!/bin/Bashnewline="" while true; DoRead newline Line_start=
Focus on Listing 7Now, many Linux® and UNIX® systems have bash shells, which are the common default shells on Linux. In this article, you'll learn how to handle parameters and options in a bash script, and how to use the shell's parameter extensions
Substitution is what.
Shell when it encounters an expression that contains one or more special characters for substitution. Example:
The following example enables printing to replace the value of the variable with its value. and "" is a new line to
In this chapter we is going to look at some of the ' magic ' that occurs on the command line when you press the Enter KEY.W Hile we'll examine several interesting and complex features of the shell,we would do it with just one new command:
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.