Computer Hope
Other => Other => Topic started by: SimonA on May 09, 2007, 11:12:21 AM
-
Hi people,
Can anyone please tell me what is the difference between a pipe and a redirection ?
I keep bugging myself with this question ??? :-\
thanks
Simon
-
redirect is when you put a certain url to a site, but you go somewhere else
not sure what a pipe is
-
Not sure what context you're referring to but in batch language redirection either gets text input from or puts text output to a device (disk file, COM, NUL, and others not used in batch code).
The pipe is used to send the text output of one command into another command. If I recall, only three commands (sort, more, and find) can take input from the pipe.
8)
Should you ever use Microsoft Powershell, you'll find the pipe is used quite extensively and that you can send complete objects, not just text into the pipeline.