In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces the batch processing of the echo command how to use, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor with you to understand.
1. Echo
Displays the status of the current ECHO: ECHO ON or ECHO OFF
2. ECHO ON
Setting the ECHO status to ON will display the command line, a flag similar to the previous C:\ >, as shown in the figure:
3. ECHO OFF
Setting the ECHO status to OFF will not display the command line, which is similar to the previous C:\ > flag. Like other functions, users can enter commands or display command results, as shown in the figure:
4. ECHO string
Displays the entered string on the CMD screen. As shown in the figure
5. ECHO string & ECHO string...
Used to display multiple rows of data, as shown:
6. ECHO string > file path and file name
Writes the string to the file, and if there is already data in the file, it will be automatically emptied before writing. As shown in the figure:
(1)
(2)
(3)
7. ECHO string > > file path and file name
Writes a string to the file and appends the string to the end of the file if there is already data in the file. As shown in the figure:
(1)
(2)
(3)
S
8. (ECHO string & ECHO string...) File path and file name
Write multiple lines of data to the file (note that parentheses cannot be removed, if parentheses are removed, only the last one can be written, and the previous one will be output in the CMD window. If there is already data in the file, it will be automatically emptied before writing.
9. (ECHO string & ECHO string...) > > path and file name
Write multiple lines of data to the file (note that parentheses cannot be removed, if parentheses are removed, only the last one can be written, and the previous one will be output in the CMD window. If there is already data in the file, the string is appended to the end of the file.
10. (ECHO string) > > File path and file name
Add a string to another line in the file. As shown in the figure:
(1)
(2)
(3)
Thank you for reading this article carefully. I hope the article "how to use echo commands in batches" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.