Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pipe and Filter

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.

like image 590
mynameisjohn Avatar asked Mar 24 '13 14:03

mynameisjohn


People also ask

What is pipe and filter style?

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.

What are the advantage of pipe & filters?

Explanation: The advantage are-They interact with the environment in limited ways and They simplify systems maintenance and enhance its reuse.

What is filter in piping?

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.

What best describes pipe & filter architecture?

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.


Video Answer


1 Answers

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


Essentially, the pipe symbol, | 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 SORTs 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.


You need to explain what you mean by your data that occurs 2 -3 times point. I can make neither head nor tail of it. Examples are usually a good way.
like image 75
Magoo Avatar answered Oct 20 '22 20:10

Magoo