I am new to the command prompt want to know how all the command works …
I want to know how to apply pipe and filter in cmd
to go through the directory and print only those files/folders that were created on a particular date, and want to use a data that occurs 2 -3 times within the files and folders of your test directory.
What is the Pipe and Filter style? The Pipe and Filter is an architectural design pattern that allows for stream/asynchronous processing. In this pattern, there are many components, which are referred to as filters, and connectors between the filters that are called pipes.
Explanation: The advantage are-They interact with the environment in limited ways and They simplify systems maintenance and enhance its reuse.
Piping Strainers (or filters) arrest debris such as scale, rust, jointing compound, and weld metal in pipelines, protecting equipment and processes. A strainer is a device that provides a means of mechanically removing solids from a flowing fluid or gas in a pipeline by utilizing a perforated or mesh straining element.
Pipe and Filter is a simple architectural style that connects a number of components that process a stream of data, each connected to the next component in the processing pipeline via a Pipe.
Go to Start>Help and support enter command prompt
in the box and press the magnifying glass symbol at the end. Then select Command Reference Overview [H1S]
from the list displayed. This will show the commands available.
Obviously, there are other articles that may be of aid as other selections.
Generally, typing
commandname /?
from the prompt will show (often cryptic) help
|
is used to direct the output of one command to the input of a second, so
dir | sort
for instance takes the screen-output of the DIR
command and SORT
s it.
The next question uses the critical term created
. Each file may have THREE different times, the time the file was created
, the time the file was last written
to and the time the file was last accessed
. It's possible to access all three times, but the default is the time last written
. This is the normal time reported by DIR, and can variously be referred to as the file time
or the update time
amongst other terms.
Hence, to list the files (using the common written
date) and select on a particular date, try
dir | find "dateyourequire"
where you need to replace dateyourequire
with the target date, in the format matching that displayed by your DIR
command. BTW commands are NOT case-sensitive - with one important exception.
Now date-format is a whole new ballgame, and you need to be very careful because the date shown is according to local convention. Some people use DD/MM/YY
for instance - others use MM-DD-YY
and there are many others. If you are discussing date and time, you need to say EVERY TIME the convention you are using.
data that occurs 2 -3 times
point. I can make neither head nor tail of it. Examples are usually a good way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With