Test environment: ubuntu12.04 LTS VersionEcho >> file.txt,This method is the same as the bash and SH effects at the beginning of the script.and Echo-e >> file.txt This only fits with bashFor SH, the-E is entered into the file and then wrapped.and
Shell-5.shell echo CommandEcho---display contentFormat: Echo [options] Text-N Do not wrap in the last line-E parsing escape character\a issued a warning sound\c Finally, no newline symbol is added.\f Line break\ r Enter1.-N do not wrap in the last
Shell is like the editor: everyone has their own choice and tries to defend the choice (it also tells you why the choice should be used ). Indeed, s
Shell is like the editor: everyone has their own choice and tries to defend the choice (it also
Shell is like the editor: everyone has their own choice and tries to defend the choice and tell you why it should be used ). Indeed, shell provides different functions, but they all implement the core concept of development decades ago.
I used
UNIX Environment Advanced Programming read Chapter Three, encountered many redirects and other shell commands. When I think about Linux, it seems necessary to go ahead. Have seen a "embedded Linux software and hardware development detailed" This
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
The echo command for Linux, which is very common in shell programming, is often used when printing variable value under a terminal, so it is necessary to understand the use of EchoThe function of the echo command is to display a piece of text on the
In the shell of Linux, echo changes the output display style echo-e "\033[32;49;1m [done] \033[39;49;0m" or echo-e "\e[32;49;1m [done] \033[39;49;0m"Output result: [Done]The color of the text terminal can be generated by using the ANSI
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.