When Echo needs to change the color, use the-e parameter.Format: ECHO-e "\ 033 [background color; font color M string \ 033 [0 m"For example:Echo-e "\ 033 [41; 36 m something here \ 033 [0 m"
The position 41 represents the background color, and the position 36 represents the color of the word.
Note:1. The English "is used between the background color and the text color.2. There is a m behind the text color
First, familiarize yourself with the echo command
NameEcho-display a line of text
SummaryEcho [Option]... [String]...
DescriptionOutputs a string to the standard output.
-N does not output line breaks
-E open the backslash (ESC) Escape
-E cancel the backslash ESC escape (default)
-- Help: Display help
-- Display version
That's all.Note that the-e option is required for the output color.
Next, let's focus on the application of the ANSI control code in
Http://blog.chinaunix.net/uid-26827001-id-3154024.htmlFirst you see a lot of #!/bin/bash that start with this is the shell program that tells the system to interpret this script file# This is a comment line, when the line is validThe script is generally expressed in the xx.sh file, so that you can see the properties of the file, of course, it can notAfter a script has been written, if you want to execute it, you must first assign +x execute permission to itFor example: chmod +x xx.sh, then use t
Let's introduce the standard command line, which contains three parts:
Command_name option argument
Okay, back, echo is sending argument out to standard output (STDOUT), usually to the monitor output.
Or just run down and look at the echo command:
Do you feel strange about a blank line and go back to the shell prompt (just $).
The reason is because ECHO is
The echo command of Linux, which is very commonly used in shell programming, is often used when printing variable value under a terminal, so it is necessary to understand the use of the following Echo
The function of the echo command is to display a piece of text on the monitor, which generally acts as a hint.The general format for this command is:
Echo (), print (), print_r () usage in php. My understanding of the echo (), print (), print_r () function is that echo can input string variable constants, and print is similar to echo, however, print_r can print arrays, but the first two are not allowed. below I use echo (
With. NET development has been 5 years, and recently suddenly want to touch. NET, so I'll take a look at PHP. In learning PHP first look at several output functions.
First, EchoEcho () is not actually a function, it is a PHP statement, so you do not need to use parentheses on it. However, if you want to pass more than one argument to Echo (), a parse error occurs when you use parentheses. and echo returns
Echo-nginx-module is a third-party module, not in Nginx source code, but in Openresty, it brings echo,sleep,time and other powerful commands like bash for nginx.conf.
Currently the latest version is v0.61
Installation Guide SeeHttps://github.com/openresty/echo-nginx-module#installationConfiguration
server {
listen 8081;
server_name localh
Linux echo command, linuxecho
This article is reproduced in: http://www.cnblogs.com/ZhangShuo/articles/1829589.html
Linux echo commands are very common in shell programming and are often used to print the variable value in the terminal. Therefore, it is necessary to understand the echo usage.
The echo command is used t
Linux echo commands are very common in shell programming and are often used to print the variable value in the terminal. Therefore, it is necessary to understand the echo usage.
The echo command is used to display a piece of text on the monitor, which generally serves as a prompt.The general format of this command is Echo
Echo is a more common command in Linux, especially in bash scripting, which is essential for its flexible use.In the man manual, the explanation is: Display a line of text, translation comes back or more popular point is to show characters or numbers. The explanation looks simple, but the command can be implemented with a lot of functionality.The reason I write about Echo is because of a job where the conte
1. Echo
Displays the status of the current echo: echo on or echo off
2. ECHO on
Setting the Echo state to on will display the command line, which is similar to the previous c:\>, as shown in the figure:
3.
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 lists, enclose it in double quotation marks.
Echo-n "What's your first name?" 1.2 Show escape characters
To use th
: This article mainly introduces echo and var_dump. For more information about PHP tutorials, see. Echo and var_dump have no difference in their core functions, both of which are "output variable values". however, echo tends to be a product for customers, debugs and programmers are more suitable to use var_dump to output variables. when debugging, say goodbye to
echo display with color, need to use parameter-EThe format is as follows:Echo-e "\033[word background color; text color m string \033[0m"For example:Echo-e "\033[41;37m Tonyzhang \033[0m"Where 41 of the position represents the background, 37 of the position is the color of the wordNote:1, the word background color and the text color is the English "" "2. There is a m behind the text color3, before and after the string can have no space, if any, the ou
Linux echo commands are very common in shell programming and are often used to print the variable value in the terminal. Therefore, it is necessary to understand the echo usage.
The echo command is used to display a piece of text on the monitor, which generally serves as a prompt.The general format of this command is Echo
In a general VoIP software or videoconferencing system, suppose we have only A and B two people on the phone,First, the sound of a is passed to the b,b and then the horn is released.The mic of B then collects the sound from the speaker and passes it back to a,If the delay in the transmission is large enough, a will hear what he has just said, and that is the echo.The function of the Echo Canceller is to process the sound collected by B at the B end, a
Title, using the JSON pass value, because the record is more, with echo too time-consuming, please master pointing
Reply to discussion (solution)
Why do you think it's too time-consuming to use echo?
Can be serialized or JSON encoded, then echo;echo Json_encode ($array);
Because the database query results more
My understanding of the echo (), print (), print_r () function is that echo can input string variable constants, and print is similar to echo, however, print_r can print arrays, but the first two cannot,
My understanding of the echo (), print (), print_r () function is that echo
echo commandFunction: Display charactersSyntax: Echo [-nee][string]Description: Echo will send the input string to standard output. The output string is separated by a white space character, and a newline number is added at the endecho "$VAR _name": variable is replaced, double quotation mark table weak referenceEcho ' $VAR _name ': variable does not replace, str
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.