0. PrefaceThis article summarizes how to use the echo command to write content to a file, such as using the ECHO directive to overwrite the contents of a file. Use the echo command to append content to a file. Use the Echo command to append tabs to the file. The basic way for Echo
ECHO is a PHP statement, print and Print_r are functions, statements have no return value, and functions can have return values (even if they are not used)
Print () only prints the value of a simple type variable (such as int,string)
Print_r () can print out the values of complex type variables (such as arrays, objects)
echo outputs one or more strings
Print--Output a string
Description
int print (str
PHP function echo () definition and usage analysis. Output one or more strings when using the definition and usage PHP function echo. The description of the echo (strings) parameter is required. One or more strings to be sent to the output. Prompt to use
Definition and usage
The PHP function echo () outputs one or mor
Install Nginx-echo module in Nginx
Nginx-echo can be used to output some information in Nginx. It is a good tool for testing troubleshooting. It can also make a summary of the information from different link addresses. In short, it can help developers. Next let's take a look at how to install and use it.
1. Download Nginx-echo
Cd/usr/local/nginx-1.12.2/Wget https
The Linux shell can be user-defined functions and can be called casually in shell scripts.
The functions in the shell are defined in the following format:
[Function] funname [()]
{
action;
[return int;]
}
Description
1, can be with function fun () definition, you can also directly fun () definition, without any parameters.
2, the parameter returns, can display add: return returns, if not added, will run the result as the last command, as the return value. Return followed by a value of N (0
Most of the time, we use echo. When using PHP for code editing, one or more strings are output normally, and the PHP function echo () is used (). The following describes how to use the PHP function echo.
Definition and usage
The PHP function echo () Outputs one or more strings.
Syntax
Tlcl-view the world echo in shell eyes
View the world in shell eyes
Echo-display a line of text
When you enter a command, bash expands the input characters before executing the command.
Expand path
Echo *
Shell expands * to the name of the file in the current directory, and prints the name of the file in the current directory,
EHCO command: Display a line of text"Feature" will print out the content by default, which is most commonly used in the shell.Syntaxecho option argument"Common options"-E activates escape characters\b: Delete the previous character \c: End with a newline symbol \ n: newline and the cursor moves only the beginning of the line \ r: The cursor moves to the beginning of the line, but does not wrap \ t: Insert tab\\: Insert "\" characterInstancePrint the given string directly [[emailprotected]tmp]#
Linux of the Echo Command , in the Shell extremely popular in programming , Print variables under the terminal value is often used. , Echo command in the build Shell play an important role in scripting1. command FormatEcho[options] [String]2. Command functionList all subdirectories and files in the destination directory3. Command Parameters- N do not wrap at the end of the lineThe--HELP displays help
Ehco and returnreturn Returned is the status code, function end Return does not return function return value You can return the function return value with echo in front, return the specified function exit status code Echo returns the function return value, the function exit status code is the exit status code of the last command of the functiontest1.sh#!/bin/bashfunctiontest () { echo200 }ret=$ (t
Objective:I installed nginx-echo-module The original intention is encountered some time ago, although there are configuration location rules, but in the browser access, there is an error, such as mismatch or do not meet the expected situation, want to know if there is actually a match which location rule, But Nginx log can only record the request URL, so, see echo output is very happy, after all, feel retur
The echo command is a child command of a DOS batch command familiar to you, but some of its features and usage maybe you don't know all about it, you see:
1. Whether to display the command line itself at execution time as a control batch command
Format: ECHO [on| OFF]
If you want to turn off the display of the ECHO off command line itself, you need to precede the
Php echo, print, print_r, printf, sprintf, var_dump usage introduction. This article introduces echo, print, print_r, printf, sprintf, and var_dump. For more information, see. I. definition and usage of echo: The PHPecho () function outputs one or more strings. the following articles describe echo, print, print_r, prin
target reflection echo detection algorithm and its FPGA implementation One: Algorithm OverviewA time ago, a project was contacted with a sonar target reflection echo detection. The core function of the sonar receiver is to recognize the echo of the excitation signal emitted by the transmitter in the reflected echo whic
!------------------------------------------The echo command in Linux is used to display a section of characters on the standard output, such as:echo "The echo command test!"This will output "the echo command test!." This line of text!echo "The echo command test!" >a.shThis w
For some command operations lower than ECHO, we need to know. Here, we will explain how to use ECHO Based on the doscommand. Many applications related to echo off are involved. You can pay attention to them.
1. As a switch to control whether the batchcompute command displays the command line itself during execution
Format: EC
The difference between echo and print in PHP is phpechoprint. The difference between echo and print in PHP. In general, PHP dynamically outputs HTML content through print and echo statements. in actual use, difference between echo and print in PHP: phpechoprint
In general, PHP dynamically outputs HTML content through
? PHP'sEcho's "Hello World";
echo "This crossesMultiRow New GuildOutput and ";
echo "This span nmultiple line. Change Guild Noutput same. ”;
echo "Escape character do" like this. ”;
//You can use a variable within the Echo statement$ Foo's = "Foobar";$ column = "Barbaz";
echo
Notes on using the echo command in Linux
1. Instructions for using the echo command: echo sends the input string to the standard output. The output strings are separated by blank characters, and the line number is added at the end. Function: display character Syntax: echo [-neE] [String] common options of
The echo command is a sub-command of a DOS batch command that everyone is familiar with, but some of its features and usage maybe you don't all know, don't believe you see:1. As a switch that controls whether the batch command displays the command line itself at execution timeFormat: ECHO [on| OFF]If you want to turn off the display of the ECHO off command line i
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.