|
Transfering (PIPING) Data Between Programs |
What a pipe allows you to do is connect STDOUT and/or STDERR streams from one program into STDIN of another.
First of all what are these streams?:
The "ECHO" command can be used to display text to stdout.
As its name implies its typically used when outputting error related information.
The "|" (vertical bar) special character is used to perform the piping as demonstrated here:
type SomeFile.txt 2>&1 | sort.exe > SortedContents.txt
When the input is a file (not process output) you can also use redirection as demonstrated here (the example about shows the "TYPE" command being used):
sort.exe < SomeFile.txt > SortedContents.txt 2>&1
![]() ![]() |
| ![]() ![]() |