In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "how to use pipeline symbols of batch commands". In daily operation, I believe many people have doubts about how to use pipeline symbols of batch commands. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to use pipeline symbols of batch commands". Next, please follow the editor to study!
The pipe character (|) is used to output the process before the symbol as the input of the process after the symbol.
For example:
There are two commands, "dir / s / b / a" and "find" .txt ". The first shows all files and folders in the current folder, and the second is to find a string containing the character" .txt ".
The two commands are connected with the pipe character (|) to "find all files and folders containing .txt in the current folder".
The code is as follows:
Dir / s / b / a | find ".txt"
Some situations where the pipe character (|) is required:
1. Puts the current date on the clipboard.
The code is as follows:
Echo% date:~,10% | clip
two。 Find a specific string or file or folder
For this function to be perfect, you need to be familiar with findstr and for, and the pipe character (|) is indispensable when findstr and for are used at the same time.
The code is as follows:
CLIP
Description:
Redirects the output of the command line tool to the Windows clipboard. This text output can be pasted
To other programs.
Parameter list:
/? This help message is displayed.
Example:
DIR | CLIP puts a copy of the current directory list on the Windows clipboard.
CLIP < README.TXT puts a copy of readme.txt on the Windows clipboard.
At this point, the study on "how to use pipe symbols for batch commands" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.