From 58ba8b2784ef4de1b3059f77b5152279db5ae22a Mon Sep 17 00:00:00 2001 From: tianci Date: Sat, 12 Mar 2022 11:55:35 +0800 Subject: [PATCH] Correction of text content --- docs/books/admin_guide/03-commands.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/books/admin_guide/03-commands.md b/docs/books/admin_guide/03-commands.md index 20cc42091e..5688a4df2a 100644 --- a/docs/books/admin_guide/03-commands.md +++ b/docs/books/admin_guide/03-commands.md @@ -286,7 +286,16 @@ The `echo` command is used to display a string of characters. This command is most commonly used in administration scripts to inform the user during execution. -The `-n` option will not return to the line after displaying the text (which is the default behavior of the command). +The `-n` option indicates no newline output string (by default, newline output string). + +```bash +shell > echo -n "123";echo "456" +123456 + +shell > echo "123";echo "456" +123 +456 +``` For various reasons, the script developer may need to use special sequences (starting with a `\` character). In this case, the `-e` option will be stipulated, allowing interpretation of the sequences.